• Hello, I’m using your wonderful plugin to track youtube vidoes. It works most of the time but not all the time.There are over 20 videos on the page I’m tracking and I’m guessing that there is a timing issue.

    Sometimes, gtm4wp.mediaPlayerReady fires for all/most of the videos. On other occasions, only 1 or 2 gtm4wp.mediaPlayerReady fire. Is there a way to ‘force’ all the players to be detected?

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    My YouTube tracking feature currently only works on videos embedded during page generation. YT videos loading after page load are currently not supported.

    There is however a native YT trigger now inside GTM, you may want to switch to this trigger as this trigger is capable of tracking late loaded videos.

    Thread Starter jyhsiao

    (@jyhsiao)

    Thanks Thomas. I tried using native GTM youtube tracking but it appears to work/fire only if your event tracking is turned on as well.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    This is strange, there shouldn’t be a connection normally and I fire a completely different GTM event and data structure as the native YT tracker.

    I tried accessing your site but I got this message:

    At this time…. access to our website is only available from the United States.

    I live in Europe, Hungary, maybe you can adjust you geo filter?

    Thread Starter jyhsiao

    (@jyhsiao)

    Thomas, Strange indeed. Unfortunately, I can’t change the geo filter.

    I looked at the source and see that the youtube API is being loaded.
    <script src=”//www.youtube.com/iframe_api”></script>

    This is the call to youtube. It seems that the youtube events do not fire when the page loads slowly. Does that give you any clues?

    “<iframe src=”https://www.youtube.com/embed/YKHIOKoTUaQ?feature=oembed&enablejsapi=1&origin=https://www.destinrecovery.com&amp;wmode=opaque&#8221; frameborder=”0″ allowfullscreen=”” id=”youtubeplayer_YKHIOKoTUaQ” data-gtm-yt-inspected-7647849_17=”true”></iframe>”

    @jyhsiao I suspect what you need to do is to check the box on your GTM Trigger for YouTube videos that says “Add JavaScript API support to all YouTube videos”.

    I’m fairly certain the iframed versions don’t have this natively, so what’s probably happening is that the plugin’s code does this for you somehow when you turn it on, but since you don’t want two different tracking items, you can turn it on through the trigger.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Youtube video tracking’ is closed to new replies.