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

Data Element not getting picked up by page load rule

Avatar

Avatar
Validate 1
Level 2
Frank_Lee_-_UT
Level 2

Likes

2 likes

Total Posts

18 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Validate 1
Level 2
Frank_Lee_-_UT
Level 2

Likes

2 likes

Total Posts

18 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Boost 1
Affirm 3
Affirm 1
View profile
Frank_Lee_-_UT
Level 2

12-04-2017

Hi,

I'm trying to set the value of an eVar via Data Element + Page Load Rule in DTM.

My page has a data layer with multiple object branches, for example:

dataLayer.pageInfo.country

dataLayer.productInfo.style

dataLayer.visitorInfo.zipcode

etc

 

I can successfully pass values from the dataLayer.pageInfo branch into evars via a DE referencing the js object path as:

dataLayer.pageInfo.country

e.g. in the PLR, eVar11=%Country%

 

But, all my DE's pointing to values on the .productInfo branch fail to pass. For example:

dataLayer.productInfo.style

...and in the PLR, eVar12=%Style%

 

To clarify, in both cases, I can type _satellite.getDataElement('country') or _satellite.getDataElement('style') in the console and get the right value to return.  But when the AA beacon fires, the evar for country is there, but the evar for style is not.

I have triple-checked for typos 🙂

 

Any ideas will be greatly appreciated!

Thanks!

Replies

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

12-04-2017

Hi Frank,

It sounds like that specific piece of your data layer may not be populated by the time the Analytics beacon fires.

If you receive the expected value when calling the data element directly via the _satellite console command,  then the method you're using to capture the value is obviously working. The most likely cause then becomes timing. How is the data element populated? Is the value scraped from the page directly or is it retrieved via a call to your server?

Are you populating a default value in your data element by chance? If not, I would add a default value in the "Style" data element for testing and see if that is getting passed in the beacon.

Cheers,
Jantzen

Avatar

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct Reply

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

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct Reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Løjmann
Level 4

12-04-2017

Hi Frank,

Do debug what Jantzen says, in your page load rule, write the datalayer value to the console to validate if that is the case. Youw can do that via the custom code Input/tab.

/Løjmann

Avatar

Avatar
Validate 1
Level 2
Frank_Lee_-_UT
Level 2

Likes

2 likes

Total Posts

18 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Validate 1
Level 2
Frank_Lee_-_UT
Level 2

Likes

2 likes

Total Posts

18 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Boost 1
Affirm 3
Affirm 1
View profile
Frank_Lee_-_UT
Level 2

13-04-2017

Thanks for the quick responses!

I tested a default value "test_style" and it did indeed fire as a component of the AA beacon data payload.

@Jantzen, I'm checking with the development team to get specifics on how the data layer is being populated.  I believe it's a server call, not a screen scrape.  I will work with them to see what can be done about moving the data layer up in the sequence of the page build so that all values populate prior to the AA beacon fire.

If anyone has tips on how to monitor/de-bug data layer build timing, that would help 🙂

Thanks!

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

03-05-2017

Hi Frank,

Any updates here? Were you able to determine if data layer timing was the root cause of the issue? 

I thought of another test that could be run. You could create a page load rule that is triggered "onload". This should delay the rule from firing until all content including images and async scripts have loaded according to the documentation.

This should delay the rule long enough for your values to be returned.

Cheers,
Jantzen

Avatar

Avatar
Validate 25
Level 4
cathyw49544988
Level 4

Likes

36 likes

Total Posts

155 posts

Correct Reply

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

Avatar
Validate 25
Level 4
cathyw49544988
Level 4

Likes

36 likes

Total Posts

155 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
cathyw49544988
Level 4

25-10-2017

I ran into the same issue. Frank, did you find a solution for this yet?

Thanks