Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

DTM:Adobe Analytics "Custom Page Code" load order

Avatar

Level 4

Hi,

I was just wondering what the exact load order from the "Custom Page Code" section of the Adobe Analytics section is. Because sometimes variables like s.linkTrackVars are set with real values and sometimes they are set to None. Are they executed before or after the UI-based Analytics setup of eVars, events and props?

1372172_pastedImage_0.png

Thanks for your help!

Cheers,

Konstantin

1 Accepted Solution

Avatar

Correct answer by
Level 9

Order of operations is:

  1. Variables/Events are populated from the form fields in the Tool config > Global Variables (if s.tl call, DTM does not register to linkTrackVars and linkTrackEvents at this point)

  2. Variables/Events are populated from the form fields in the Rule (if s.tl call, DTM does not register to linkTrackVars and linkTrackEvents at this point)

  3. Custom Code box code in the Rule is evaluated (if s.tl call, make sure to register your variables/events set within your custom code box to linkTrackVars and linkTrackEvents)

  4. Variables/Events populated from the form fields (for both Global and Rule vars) are registered (appended)  to linkTrackVars and linkTrackEvents

View solution in original post

1 Reply

Avatar

Correct answer by
Level 9

Order of operations is:

  1. Variables/Events are populated from the form fields in the Tool config > Global Variables (if s.tl call, DTM does not register to linkTrackVars and linkTrackEvents at this point)

  2. Variables/Events are populated from the form fields in the Rule (if s.tl call, DTM does not register to linkTrackVars and linkTrackEvents at this point)

  3. Custom Code box code in the Rule is evaluated (if s.tl call, make sure to register your variables/events set within your custom code box to linkTrackVars and linkTrackEvents)

  4. Variables/Events populated from the form fields (for both Global and Rule vars) are registered (appended)  to linkTrackVars and linkTrackEvents