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

Clear Variable for lnk_e and lnk_d

Avatar

Avatar
Validate 1
Level 8
thomas_amsler
Level 8

Likes

243 likes

Total Posts

159 posts

Correct Reply

26 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 8
thomas_amsler
Level 8

Likes

243 likes

Total Posts

159 posts

Correct Reply

26 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
thomas_amsler
Level 8

06-12-2018

We configured the Analytics Extension to automatically track exit and download links for certain domains and extensions respectively. There is also a doPlugins which adds some events and eVars to these with something like this:

if (s.linkType === 'd') {

    // set some eVars and events

} else if (s.linkType === 'e') {

    // set some other eVars and events

}

This works fine, but as this isn't a rule where I have full control over the actions, events and evars set here, are repeated with the next rule that is fired. We created all the rules with the Clear Variable action at the end, but now it seems, we should have put it first, before setting the new variables. Is this the only way to make sure these eVars and events are cleared before the next rule fires? Or is there a way to tell the Analytics Extension to clear variables also for these two automatic link trackings?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

337 likes

Total Posts

2,286 posts

Correct Reply

815 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

337 likes

Total Posts

2,286 posts

Correct Reply

815 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

06-04-2020

There are almost an unlimited amount of ways to do most things in Launch. If you want to have the Analytics Extension run code that sets variables, you will need to clear those variable first in any rule where you didn't want those variable included. Alternatively, you could likely take the code out of the Analytics extension and create rule to accomplish the same task. This would give you the flexibility of adding conditions to the rule and only having those variable set when they should be set rather than globally.

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 2
Alandy_Iceboats
Level 2

Likes

11 likes

Total Posts

23 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Give Back
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 1
Level 2
Alandy_Iceboats
Level 2

Likes

11 likes

Total Posts

23 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Give Back
Boost 5
Boost 3
Boost 10
View profile
Alandy_Iceboats
Level 2

21-01-2020

Perhaps prior to setting events for these link types you could add the s.clearVars() ?

https://docs.adobe.com/content/help/en/analytics/implementation/javascript-implementation/function-c...

Avatar

Avatar
Validate 1
Level 8
thomas_amsler
Level 8

Likes

243 likes

Total Posts

159 posts

Correct Reply

26 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 8
thomas_amsler
Level 8

Likes

243 likes

Total Posts

159 posts

Correct Reply

26 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
thomas_amsler
Level 8

29-01-2019

No answer to this after almost 2 months, so I assume I have to find another solution, like clearing stuff myself in the doPlugins. So I need to find out if this method gets executed before or after my Set Variables actions within the rules.