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

eVar once been set, gets erroneously getting passed in all subsequent calls

Avatar

Avatar
Validate 1
Employee
mohitgupta86
Employee

Like

1 like

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Employee
mohitgupta86
Employee

Like

1 like

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mohitgupta86
Employee

26-09-2017

I set an eVar through the Custom Script in DTM (in an Event based rule) like below:

s.eVar6 = this.getAttribute('data-name');

Capture.PNG

Capture2.PNG

'ClickedELement' is a blank DataElement, I have to set this as without setting eVar6 through UI like this, eVar6 was not getting passed in Analytics call.

I am setting this as I have to set the value from the HTML element to keep the implementation general . There can be multiple such HTML elements each of which I am differentiating via "data-name" attribute present in the HTML element.

Problem is once this Event is triggered, eVar2 gets set and correctly passes in Analytics call but in each subsequent call (even other than this Event based rule where this eVar2 not even referred), this eVar2 gets passed with the value that was last being set.

I have tried setting the Expiration to "Hit", "Custom Event" (event, where it was set), but it is still being passed in the subsequent event.

Any other better way to do this is also welcome.

Replies

Avatar

Avatar
Validate 1
Employee
mohitgupta86
Employee

Like

1 like

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Employee
mohitgupta86
Employee

Like

1 like

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mohitgupta86
Employee

28-09-2017

Any idea here? Why eVar is being passed even when not specified in subsequent calls?

This is probably inflate the "Instances" of this eVar.

Avatar

Avatar
Boost 5
Level 2
jchuck5612
Level 2

Likes

7 likes

Total Posts

24 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Applaud 25
View profile

Avatar
Boost 5
Level 2
jchuck5612
Level 2

Likes

7 likes

Total Posts

24 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Applaud 25
View profile
jchuck5612
Level 2

28-09-2017

Seems weird. Is the evar expiration = session? Also is the data element in DTM set to page view?

Avatar

Avatar
Validate 1
Employee
mohitgupta86
Employee

Like

1 like

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Employee
mohitgupta86
Employee

Like

1 like

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mohitgupta86
Employee

29-09-2017

Expiration for eVar is set to "Visit", though I have tried with "Hit" as well, it is still being passed in subsequent calls and can be seen in Adobe debugger.

Yes, DataElement is set to "Page View"

Avatar

Avatar
Boost 5
Level 2
jchuck5612
Level 2

Likes

7 likes

Total Posts

24 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Applaud 25
View profile

Avatar
Boost 5
Level 2
jchuck5612
Level 2

Likes

7 likes

Total Posts

24 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Applaud 25
View profile
jchuck5612
Level 2

29-09-2017

Could you call s.clearVars() in the rule or set s.eVarXX = ''?

Avatar

Avatar
Validate 1
Employee
mohitgupta86
Employee

Like

1 like

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Employee
mohitgupta86
Employee

Like

1 like

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mohitgupta86
Employee

30-09-2017

I have many other rules, you mean I have to set s.eVarXX="", or, s.clearVars()  to all of those rules?

Avatar

Avatar
Coach
Employee
Gigazelle
Employee

Likes

470 likes

Total Posts

1,947 posts

Correct Reply

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

Avatar
Coach
Employee
Gigazelle
Employee

Likes

470 likes

Total Posts

1,947 posts

Correct Reply

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

22-01-2018

Are you setting the eVar to expire to hit in the Analytics admin console, or the DTM rule? These two functions operate very differently.