All Collections
Ad Lightning
Blocking
OP Implementation via GTM
OP Implementation via GTM

Don't want to mess with your Header? Do you use GTM? Look no further!

Meghan Mark avatar
Written by Meghan Mark
Updated over a week ago

Setting up the tag: Create a new tag configuration > custom HTML tag

  1. Paste your provided OP script into the HTML field 

  2. Enable "support document.write" 

  3. Ensure this tag has the highest firing priority as possible

  4. Check the "Only fire the tag in published containers"

  5. Set Tag Firing Options to "Unlimited"

Setting Triggering Rule: Trigger Configuration > Trigger Type

  1. Set the "Page View - DOM Ready" type

  2. Set trigger to fire on "All DOM Ready Events"

Save and Publish the new container and you're all set!

Note: This implementation requires GTM to be loaded before the ad slots are defined and pushed to the GPT command queue. Ideally GTM should be loaded before GPT, but if not, as long as they're placed close together in the header, this is acceptable.

Did this answer your question?