-
Troubleshooting GTM's Youtube Trigger Failing to Fire Consistently
“Hey, I’m having a bit of trouble with YouTube event tracking in Google Tag Manager for Google Analytics 4. The built-in feature isn’t working for me, so I’ve been trying to do it manually. Here’s the weird thing, the tracking works perfectly for the first video I play when I test it in preview mode. But then, any other videos I click to play after that aren’t detected as YouTube events in preview mode – they’re just showing up as link clicks. So far, I’ve tried enabling the trigger ‘en container loaded’ (this is the only way I can get it to read at least the first clicked video) and I’ve also tried adding a Custom HTML that fires on all pages with the highest priority, as suggested by ‘analyticsmani’ (basically, the full HTML was “script src=”https://www.youtube.com/iframe_api”). But, I’d really like it if the event would fire with the event tag every time I click on a video, not just the first one. Oh, and this might be important: each video is inside of a modal that opens up when you click on a call to action like ‘Watch more’. So, I click on that, the modal opens, I click again and the video starts. Got any ideas why this is happening and how to fix it?”
Log in to reply.