Launching Adobe Target Anti-Flicker via DTM | Community
Skip to main content
November 22, 2022
Solved

Launching Adobe Target Anti-Flicker via DTM

  • November 22, 2022
  • 1 reply
  • 1013 views

Hi, at a bit of a loss for this scenario, any help would be appreciated:

 

In DTM we want to load the anti-flicker script provided (the one that hides the body; https://developer.adobe.com/target/implement/client-side/atjs/how-atjs-works/manage-flicker-with-atjs/), but we obviously need a conditional to fire the custom tag (for this we choose "activity.id" returned from AT's event(s); https://developer.adobe.com/target/implement/client-side/atjs/atjs-functions/atjs-custom-events//)

 

The problem is no matter what event we target, (e.g. adobe.target.event.CONTENT_RENDERING_SUCCEEDED or adobe.target.event.REQUEST_START) we  can't properly time it in a way that both the activity.id is present on page and the DTM conditional is fired.

 

Typically anti-flicker is hardcoded on the page directly, but since we control several sites this isn't feasible. So the question is really can "activity.id" be used to fire a DTM tag? And if so, how?

 

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gaureshk_Kodag

I don't think you can add prehiding snipped via DTM. whole point of prehiding snippet is hide page until target loads (till 3 sec. Max). So it has to be above launch/dtm script.

Or maybe you could try triggering target rule at page bottom and add prehiding snippet on page top rule. Let me know if this works.

1 reply

Gaureshk_Kodag
Adobe Employee
Gaureshk_KodagAdobe EmployeeAccepted solution
Adobe Employee
November 23, 2022

I don't think you can add prehiding snipped via DTM. whole point of prehiding snippet is hide page until target loads (till 3 sec. Max). So it has to be above launch/dtm script.

Or maybe you could try triggering target rule at page bottom and add prehiding snippet on page top rule. Let me know if this works.