Expand my Community achievements bar.

Adobe Launch-youtube no cookie tracking

Avatar

Level 2

Hi Team,

 

Our site has implemented with youtube-nocookie.com videos but this format videos are not tracking with youtube embedded tracking method,

Can some one help me how we can track this kind of video?

 

Amruthesh_AG_0-1718951453105.png

@Jennifer

Topics

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

9 Replies

Avatar

Community Advisor

I've never had proper success tracking YouTube videos using only Adobe Launch ever... whether it was a regular YT or this new No-Cookie variant.

 

In our experience, the play, pause, etc actions only sporadically worked... I would hit play - nothing, I would hit pause - nothing, I would hit play again - success, I would hit pause - nothing,  I would hit play again - nothing, I would hit pause - success...

 

There was no pattern to the failures to detect the events... it resulted in a approximately a 70% failure rate. Now, it's possible that was due to something in our React site, I have not tried with our new front-end code.

 

Questions for you:

1. Have you had YouTube Videos (before no-cookie) implemented on your site, and was that code stable? (Trying to figure out if the issue is YT in general, or just this new variation)

2. Are you seeing any error messages? Or are your triggers just not being detected?

Avatar

Level 1

Thanks for your reply @Jennifer_Dungan 

 

Same code is working fine on normal YouTube video

And not getting any error or exception in console.

 

Avatar

Community Advisor

Hmm okay, so the issue is completely related to this new video type... It's likely related to something fundamental in the API of this new video player type on YT's side...

 

There are two YouYube extensions the last time I checked, I'm not sure which one you are using... there is one created by Adobe (which you may have to contact client care about), and the other one is actually coded by one of the advisors here on Experience League... @yuhuisg.. if you are using his extension, he might be able to work with you to either create a new version to handle this variant of the YY player.

 

I don't know if this is something you will be able to fix on your own... 

 

Good luck!

Avatar

Community Advisor

Thanks for mentioning me, @Jennifer_Dungan !

@AmrutheshAG @Amruthesh_AG I saw in your screenshot that your developers have embedded the YouTube videos in a non-standard way. Instead of using YouTube's recommended <iframe> tag, your developers have chosen to use a <video> tag, with the "src" attribute set to the YouTube video feed itself.

Without the <iframe>, video tracking is impossible because YouTube's player is not loaded, and all tracking is really done through the player. Even with <iframe>, using youtube-nocookie.com would still allow your videos to be tracked.

If your developers insist on using <video>, then you could try tracking your videos with Launch's Media-related events in the Core extension. But this is really up to you to figure out, again, because your YouTube videos are not being embedded according to YouTube's recommendations.

Avatar

Community Advisor

Well, that makes a lot of sense.. Thanks for helping out @yuhuisg 

 

I wasn't sure if this was some new fancy embed, but its a custom solution...

Avatar

Level 2

Hi @yuhuisg   I have cross checked the developer and they mentioned they have implemented as Iframe only.

AmrutheshAG_0-1719983800527.png

 

Youtube tracking implementation screenshots
1) I have tried with YouTube Playback & Video Tracking for YouTube extension for video start event but it is not working.

AmrutheshAG_1-1719983964260.png

AmrutheshAG_2-1719984048646.pngAmrutheshAG_3-1719984066142.png

 

Avatar

Community Advisor

Like I said, I always had issues with YouTube (I swear every time someone at YT sneezes the API breaks...)

 

My solution was a Frankenstein-esk monster using GTM (and their ability to listen for YT videos) and using GTM to trigger custom events / set data about the video, and then use Event Listeners in Adobe to track the videos....

This is only an option if you have GTM on your site though...

Avatar

Community Advisor

Ok, I see that the <iframe> code is correct. But I noticed that there is an additional "loading" attribute in the <iframe> with a "lazy" value. I also noticed an additional "data-isrc" attribute with the YouTube URL as the value. These 2 attributes are not part of the standard YouTube embed code, so your developers might have added them. I wonder if either of those is causing the problems.

I can't speak for the "Video Tracking for YouTube", since I'm not that extension's developer. But I can check why my "YouTube Playback" extension doesn't work with your YouTube code.