내 커뮤니티 업적 표시줄을 확대합니다.

Adobe Experience Platform (AEP) & Apps User Groups are live to Network, learn, and share in your regional locations.

Adobe Tags Embed Script - <head> vs <body>

Avatar

Level 3

Hello everyone,

 

We have followed Adobe's recommendation of implementing the adobe tags embed script in the <head> tag under our UserConsent script (OneTrust). We are currently facing an issue where the Adobe script is firing too quickly before the OneTrust (OptanonConsent) cookie is written. Resulting in the rule not firing for individuals landing on the page without previously having the OptanonConsent cookie.

 

The question here is, if we were to move the Adobe embed script to the <body>, I assume that this would solve for the 'cookie not present' issue.

 

Let me know your thoughts as I would like to understand if the placement recommendation in the <head> tag was strict or guidance and if so, why?

 

Thanks,
Tyrese

주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

1 답변 개

Avatar

Level 4

Do not move the Adobe tag to body it is NOT recommended, Adobe Tags should file in Head tag itself, moving to body can create data challenges for Adobe Analytics and flicker issues for Target.

 

The real fix is to control when Tags are fire.

  • For Adobe Analytics pageview/Target rule in Adobe Tags (Launch) add Rule condition to fire only when the OneTrust consent cookie or event exists.

This will hold Adobe rules from triggering without OneTrust consent.