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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Launching Adobe Target Anti-Flicker via DTM

Avatar

Level 1

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-atj...), 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!

1 Reply

Avatar

Community Advisor

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.