Learn business growth with Google Analytics 4 Forums Google Analytics 4 Troubleshooting GTM's Youtube Trigger Failing to Fire Consistently Reply To: Troubleshooting GTM's Youtube Trigger Failing to Fire Consistently

  • Mia

    Member
    26 March 2023 at 6:58 am

    Sure, let’s unravel this a bit. Now, here’s where it gets interesting – when you’re managing to play the first YouTube video, it’s picking up the event and recognising it as a YouTube event – that’s great! But then, any videos after that just show up as link clicks, right?

    This could be happening because each time you go to play another video, you could be just changing the source or the video link in the YouTube element (this is known as the DOM, or Document Object Model) within your site – which might be wrapped inside that modal you mentioned.

    Google Tag Manager however, doesn’t track again when you change the source or video link, it just looks at the element or ‘container’ when it first loads on the page, and then any changes after that don’t register as YouTube events.

    What might be worth checking is whether each video in the modal is using the same YouTube DOM and only changing the URL. Because if that’s the case, GTM might be seeing it as one continuous link click rather than separate YouTube events. I know it’s a bit of a conundrum, but hopefully, this shines a light on what could be happening!