How to get the full query string parameter into AA / using Launch | Community
Skip to main content
New Participant
Apr 17, 2023 6:46 PM UTC
Solved

How to get the full query string parameter into AA / using Launch

How can I get the the full query string parameter into AA?

Sure, its part of the page-url, but since they are sometimes are longer than 255 signs, it is cut off in AA.

 

I am using Adobe Launch / Tagmanager. There I only found the WebSDK Plugin where you can use "getQueryParam" as DataElement Source. But there you need to configure every param in advance. But I dont know every param.

 

Example:

Current page url has some parameters:

- https://domain.com?param1=foo&random2=bar&utm_source=search&rss=true 

My expected return string would be the full path without domain.
- ?param1=foo&random2=bar&utm_source=search&rss=true

 

Any idea?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jennifer_Dungan
Jennifer_DunganAccepted solution
Level 2
Apr 18, 2023 2:37 AM UTC

I would just use a custom code Data Element:

 

var params = window.location.search; return params;

 

If there are no parameters, it should return an empty string ("")

2 replies

Jennifer_Dungan
Jennifer_DunganAccepted solution
Level 2
Apr 18, 2023 2:37 AM UTC

I would just use a custom code Data Element:

 

var params = window.location.search; return params;

 

If there are no parameters, it should return an empty string ("")

Translate
yuhuisg
New Participant
Apr 18, 2023 3:57 AM UTC

Note that even with this solution, you are still limited to 255 characters. That is a hard limit of eVars that is built into Adobe Analytics, and you can't overcome that.

If you have a very loooooong query string but really only need to track some queries, then you could modify Jennifer's solution to pick out those specific queries only and track them. Hopefully, the final length is still less than or equal to 255 characters.

Translate