Expand my Community achievements bar.

DTM - YouTube API Rule Not Working

Avatar

Level 1

I am trying to add a call to the YouTube API as a page load rule in the Dynamic Tag Manager, in the Javascript/Third Party Tags section. It's sequential javascript, triggered onload. It works outside the tag manager. However, once it's in the tag manager, the onPlayerReady event and other tracking events don't fire. It does when checking the Execute Globally checkbox. However, doing that invalidates the use of the event keyword, which is necessary for the YouTube tracking I want to do. I've attached the code.

I have tried different configurations (non-sequential, fired at top of page, bottom of page, DOM ready, etc.) and haven't been able to get the attached code to fire any SiteCatalyst variables. Again, it does work as expected outside the console. Does anyone have any ideas?

 

Thanks

0 Replies