Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Using UTM parameters in Adobe Analytics

Avatar

Avatar
Validate 1
Level 2
carlos_santos
Level 2

Likes

6 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
carlos_santos
Level 2

Likes

6 likes

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
carlos_santos
Level 2

07-08-2017

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:

www.exampledomain.com/?utm_source=emailing&utm_medium=email&utm_content=premium&utm_campaign=test-ca...

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.

View Entire Topic

Avatar

Avatar
Boost 3
Level 2
shamshul2007-TA
Level 2

Likes

3 likes

Total Posts

8 posts

Correct Reply

4 solutions
Top badges earned
Boost 3
Boost 1
Applaud 5
Affirm 3
Affirm 1
View profile

Avatar
Boost 3
Level 2
shamshul2007-TA
Level 2

Likes

3 likes

Total Posts

8 posts

Correct Reply

4 solutions
Top badges earned
Boost 3
Boost 1
Applaud 5
Affirm 3
Affirm 1
View profile
shamshul2007-TA
Level 2

08-01-2019

Use the concatenation method here for an easier solution How to Capture multiple query parameters in the s.util.getQueryparam