MediaMath tag implementation

Gold Contributor
Gold Contributor
Hi, please do you have a brief guidilen how to implement MediaMath tag? I added a tag "MediaMath". Added advertisers ID there and for event id I put @@event_id@@. The load rule is specified to be triggered on a specific URL. As we got a list of events when MediaMath needs to be fired, we created an extension, lookup table, taking into consideration event label and if it matches the pattern then it should fire. Unfortunately, it does not happen. Please can you advise? Thanks, Lukas
3 REPLIES 3

MediaMath tag implementation

Employee Emeritus

Hi Lukas Teply, our guide for the basic configuration of the Media Math tag is here: https://community.tealiumiq.com/t5/Tags-and-Client-side/MediaMath-Tag-Basic-Configuration/ta-p/5654 However, based on your description above, you are using a load rule that is dependent on the output of an extension. In the normal order of operations, Load Rules are processed before extensions with the scope of "All Tags", "DOM Ready", and "Tag-specific" so your load rule will always evaluate to false without some help. Using a configuration override, you can re-evaluate load rules at DOM Ready. To do this: 1. Add a JavaScript extension with the scope of PreLoader. 2. Use the following code to force load rules to be re-evaluated at DOM Ready. {code:JavaScript} window.utag_cfg_ovrd = window.utag_cfg_ovrd || {}; window.utag_cfg_ovrd.load_rules_at_wait = true; {code} More information at: https://community.tealiumiq.com/t5/Tealium-iQ/How-to-evaluate-load-rules-AFTER-extensions/ta-p/13745

MediaMath tag implementation

Gold Contributor
Gold Contributor
Hi Clint, thank you for your answers. I read the basic configuration but I would need more information or having more examples there would be helpful. As we need to fire MediaMath tags also for specific events such as downloads or reaching a specific part of a page (www.domain.com/#prevent) therefore I created a look up table to fire tag when the special pattern (in our case I linked it to event label) is reached. Do you think there is another way how to set it up. Unfortunately, it does not work now. Thanks, Lukas

MediaMath tag implementation

Employee Emeritus
Hi Lukas Teply, I'd recommend reaching out to your account manager so that we can explore your use case in detail and help you develop the best solution.
Public