Expand my Community achievements bar.

SOLVED

Data Elements timing in DTM

Avatar

Employee

Are data elements processed based on the tags using them or are they processed at a specific time on the page? 

For example, a data element using custom JS is configured to pull a text value from an HTML <A> tag that isn’t available until the middle of the <body> tag.  If I have a tag that fires in the head and another that fires in at the closing body, will the header tag not include that data element but the footer tag would?

1 Accepted Solution

Avatar

Correct answer by
Employee

Data Elements are “use it or lose it”.   If you define a Data Element in the UI but never use it in any rule, it will never be populated. 

When you call a Data Element in a rule, DTM then looks for your definition of that Data Element, and THEN populates it.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Data Elements are “use it or lose it”.   If you define a Data Element in the UI but never use it in any rule, it will never be populated. 

When you call a Data Element in a rule, DTM then looks for your definition of that Data Element, and THEN populates it.