Tracking code

Avatar

Avatar
Validate 10
Level 2
PeterZH12
Level 2

Likes

6 likes

Total Posts

35 posts

Correct reply

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

Avatar
Validate 10
Level 2
PeterZH12
Level 2

Likes

6 likes

Total Posts

35 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
PeterZH12
Level 2

19-04-2019

Will Omniture be able capture tracking code if the url has 2 ampersands? thx

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 4
brentrad
Level 4

Likes

54 likes

Total Posts

82 posts

Correct reply

16 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back
Boost 50
View profile

Avatar
Validate 1
Level 4
brentrad
Level 4

Likes

54 likes

Total Posts

82 posts

Correct reply

16 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back
Boost 50
View profile
brentrad
Level 4

19-04-2019

Adobe Analytics won't capture any campaign tracking code until you have configured the Util.getQueryParam. The configuration involves letting Adobe Analytics know what parameter to look for in the URL (e.g. "cid"), referred to as the "key". If there are multiple query parameters in the URL separated by ampersands, Adobe is only going to grab the values associated with the query parameter that you've told it to look for.

For example, let's say that you've configured Util.getQueryParam to look for "cid", and to store the value associated with the "cid" key in the s.campaign variable (s.eVar0). if the URL for one of your campaigns is mysite.com/?cid=new_campaign&eid=other_campaign, only the value associated with the cid parameter, new_campaign, will be captured.

For another example, let's say that the campaign URL is mysite.com/?cid=new&campaign. The presence of the ampersand tells Adobe to stop because the ampersand is Adobe's default delimiter. In this case, the value captured in the s.campaign variable is "new", and the "campaign" part is not captured. You can specify a different delimiter, such as semi-colon, in the Util.getQueryParam configuration.

Answers (2)

Answers (2)

Avatar

Avatar
Level 1
michelles90014
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
michelles90014
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
michelles90014
Level 1

04-08-2020

If I understand you correctly, you are trying to capture two tracking codes at the same time for the campaign upon a click?

If so, and if "cid=" was how you configured your getParam value in your s.code.js file, then you could use this syntax:

www.mysite.com?cid=CampaignCode1&cid=CampaignCodeB&cid=CampaignCodeYellow

The result is that all three tracking codes would come in simultaneously upon user click and your Tracking Code report would look like this:

Tracking Code           Click-throughs

1. CampaignCode1           1

2. CampaignCodeB           1

3.CampaignCodeYellow    1

Avatar

Avatar
Coach
Employee
Gigazelle
Employee

Likes

473 likes

Total Posts

1,947 posts

Correct reply

740 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile

Avatar
Coach
Employee
Gigazelle
Employee

Likes

473 likes

Total Posts

1,947 posts

Correct reply

740 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile
Gigazelle
Employee

26-04-2019

ampersands are how query strings are separated. If you have the URL https://example.com?cid=value1&did=value2, you could use the query string param utility to extract either value1 from cid or value2 from did.