Hi,
Im trying to extract the UTM parameters from the URL's to the campaign variable. I was using this method
http://analyticsdemystified.com/adobe-analytics/using-utm-campaign-parameters-adobe-analytics/
Unfortunately, from my understanding, I can't use the getQueryParam because im using the javascript of Appmeasurement. One solution is using the Util.getQueryParam, but unlike the plug-in, it doesn't support extracting multiple parameters at once.
Here's an example of what im trying to get:
From this URL:
I want to extract something like this to the campaign variable:
emailing:email:premium:test-campaign
For that I used this sintax:
s.campaign = s.Util.getQueryParam("utm_campaign");
s.campaign = s.Util.getQueryParam("utm_source");
s.campaign = s.Util.getQueryParam("utm_medium");
s.campaign = s.Util.getQueryParam("utm_content");
But the final result is:
campaign = premium
This happens because each line is overwriting one another, correct? How can I extract all the parameters to the campaigns variable?
Thanks.
Solved! Go to Solution.