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 populating with Undefined value

Avatar

Avatar
Validate 1
Level 1
pradeep_07
Level 1

Like

1 like

Total Posts

56 posts

Correct Reply

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

Avatar
Validate 1
Level 1
pradeep_07
Level 1

Like

1 like

Total Posts

56 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
Boost 1
Applaud 5
View profile
pradeep_07
Level 1

24-08-2020

Hi ,

We have scenario where Datalayer page attributes values is populating as expected on page load , but with the server call eVar is showing as undefined. We followed the standard practice of capturing the value in data element and passing it to eVar. 

 

Note:  This works perfectly fine when we use _satellite.getVar in the console.  What could be the issue here?

 

Thanks,

 

Pradeep

Undefined

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Establish
MVP
evolytics_brian
MVP

Likes

70 likes

Total Posts

145 posts

Correct Reply

44 solutions
Top badges earned
Establish
Seeker
Give Back
Engage 1
Boost 50
View profile

Avatar
Establish
MVP
evolytics_brian
MVP

Likes

70 likes

Total Posts

145 posts

Correct Reply

44 solutions
Top badges earned
Establish
Seeker
Give Back
Engage 1
Boost 50
View profile
evolytics_brian
MVP

24-08-2020

Hi, @pradeep_07 

My first guess would be that it's a timing issue. Have you been able to confirm that the data layer key is populated before the analytics call fires? You might try changing the timing of the page load call/rule to a later option (Page Bottom? Window Loaded?).

Avatar

Avatar
Give Back
Level 4
kainth
Level 4

Likes

46 likes

Total Posts

117 posts

Correct Reply

24 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Give Back
Level 4
kainth
Level 4

Likes

46 likes

Total Posts

117 posts

Correct Reply

24 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 25
Boost 10
View profile
kainth
Level 4

24-08-2020

Hi @pradeep_07,

This seems to be a timing issue. The eVar value is not present when the Launch rule fires but when the page load is complete probably eVar is firing at that time. Due to this _satellite.getVar s giving you the value in the console window. So, I will suggest you to please try changing the load order of your library at Page Bottom or on Windows Loaded.

Hopefully, that will resolve the issue.

Regards,

Abhinav