Expand my Community achievements bar.

SOLVED

How to track youtube embedded videos via adobe launch

Avatar

Level 2

Hi all, I have a use-case where I have to implement the analytics tracking for youtube embedded videos. I have tried using two extension one being youtube playback and other one is youtube player embed but neither is giving me the desired outcome.

 

I am thinking if the videos are inside the iframe tag which is the primary reason it is not getting loaded.

 

Does anyone has experience on handing this use-case and provide an appropriate solution.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @ishanchopra , i am the developer of the YouTube Playback extension. Could you elaborate more on your problem? Also, how did you setup the video tracking with my extension which did not result in your desired results?

If possible, can you share a link to a page with the video that you're trying to track? I could then take a look at the page and video to try to understand more about how the video has been embedded in your page.

View solution in original post

6 Replies

Avatar

Community Advisor and Adobe Champion

HI @ishanchopra,

 

YouTube videos require a parameter called "enablejsapi" to be included in the iFrame link (and set to 1), in order for the connections to properly function.

 

I know this article is GTM specific, but the same basic need is the same:

https://www.analyticsmania.com/post/youtube-tracking-google-tag-manager-solved/

 

Jennifer_Dungan_0-1748956192563.png

 

First check that you have this on your videos.

 

 

What behaviour are you experiencing with your tracking? Is it not working at all? Or is it sporadically working?

Avatar

Community Advisor

Hi @ishanchopra 

do your Youtube URLs contain a "enablejsapi=1" query parameter set? This is needed in the first place to enable tracking capabilities.

https://developers.google.com/youtube/player_parameters#enablejsapi 

Cheers from Switzerland!


Avatar

Level 3

@ishanchopra  you can refer below adobe link for youtube video tracking. it cover step by step instruction. I hope this help 

https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-15023

 

Avatar

Correct answer by
Community Advisor

Hi @ishanchopra , i am the developer of the YouTube Playback extension. Could you elaborate more on your problem? Also, how did you setup the video tracking with my extension which did not result in your desired results?

If possible, can you share a link to a page with the video that you're trying to track? I could then take a look at the page and video to try to understand more about how the video has been embedded in your page.

Avatar

Level 2

I have made some changes in my saw the load the youtube embedded video with this option and it works. I already have another extension for youtube but since these videos were embedded into the page and inside the iFrame tag it was not getting loaded but with option I am able to get the play. I hope I will be able to get all the required attributes like video name, milestones, length of video etc. with this extension.

 

ishanchopra_0-1749022743787.png

 

Avatar

Community Advisor

Ok, that's great that it's working for you now.

Yes, it's better to leave that option selected. Even if the YouTube IFrame API script happens to be loaded elsewhere, e.g. your developers load it in the web page itself, then not to worry, having this option selected won't cause the script to get loaded  again. So you can leave this selected always.