Tags - YouTube iFrame Tracking Problem | Community
Skip to main content
bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
July 17, 2024
Solved

Tags - YouTube iFrame Tracking Problem

  • July 17, 2024
  • 1 reply
  • 754 views

Hi guys,

 

I am facing an issue where I cannot seem to receive any YT iFrame media events (iframe src contains the &enablejsapi=1 param, see sample src below).

 

Setup

  • youtube video is loaded upon click on poster i.e., iframe with src *= youtube is not available before click
  • using the "Youtube Playback" extension, https://exchange.adobe.com/apps/ec/104160
  • tried a poster click rule that was not working reliably, saying the iframe was not found by then (did not want to add a delay)
  • instead, opted for a "enters viewport" solution (only as a POC, will be refactored later), just to see if anything is fired at all - which is not

Sample iFrame source

src="https://www.youtube.com/embed/asdasdadsadsadsadsads?autoplay=0&controls=0&disablekb=1&playsinline=1&cc_load_policy=0&cc_lang_pref=auto&widget_referrer=https%3A%2F%2Fwww.client.com%2Fit%2Fit%2Fadvisors&rel=0&showinfo=0&iv_load_policy=3&modestbranding=1&customControls=true&noCookie=false&enablejsapi=1&origin=https%3A%2F%2Fwww.client.com&widgetid=1"

 

 

 

It seems to detect the iframe with the player.

 

However, my dummy rule that should fire upon pretty much any YT event is never called

 

Any ideas?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by bjoern__koth

@yuhuisgwho created the extension brought me on the right track. The developers are using a custom player that integrates various sources like YouTube, Vimeo, etc and instead exposes standard HTML5-style media events I should be able to register to.

Unfortunately, this player comes with its own iframe_api.js which causes problems with the extension.

 

Solution will be using the custom events coming from the player and skipping all Launch extensions.

1 reply

bjoern__koth
Community Advisor and Adobe Champion
bjoern__kothCommunity Advisor and Adobe ChampionAuthorAccepted solution
Community Advisor and Adobe Champion
July 18, 2024

@yuhuisgwho created the extension brought me on the right track. The developers are using a custom player that integrates various sources like YouTube, Vimeo, etc and instead exposes standard HTML5-style media events I should be able to register to.

Unfortunately, this player comes with its own iframe_api.js which causes problems with the extension.

 

Solution will be using the custom events coming from the player and skipping all Launch extensions.

Cheers from Switzerland!
yuhuisg
Community Advisor
Community Advisor
July 19, 2024

You're welcome, @bjoern__koth !