you tube tracking i have included as per the documentation as to add id and query string parameters enablejsapi and rel parameter.
/*
<iframe class="cmp-embed__youtube-iframe" title="youtube video" data-cmp-data-layer="{"youtube-carousel":{"@type":"core/wcm/components/embed/v1/embed/embeddable/youtube","repo:modifyDate":"2024-10-22T09:50:48Z","embeddableProperties":{"youtubeVideoId":"Wk2Cy7tDB9I"}}}" src="https://www.youtube.com/embed/Wk2Cy7tDB9I?origin=https%3A%2F%2Fauthor-p126202-e1235109.adobeaemcloud... frameborder="0" allowfullscreen="" allow="autoplay; fullscreen" aria-label="YouTube Video" id="youtube-carousel"></iframe>
*/
but still its not working to build the library
Views
Replies
Total Likes
Hi @kalaivaniL3
curious question, your youtube src is having the query params encoded and not as actual query params?
vs
not sure whether that will be properly interpreted.
By any chance, are you having GA4 on your page with video tracking through advanced measurement? This may also interfere with other Analytics solutions' video tracking.
Views
Replies
Total Likes
Thanks for the reply, i have asked them to not encode and send it again like down
<iframe class="cmp-embed__youtube-iframe" title="youtube video" data-cmp-data-layer="{"youtube-carousel":{"@type":"core/wcm/components/embed/v1/embed/embeddable/youtube","repo:modifyDate":"2024-08-27T04:57:47Z","embeddableProperties":{"youtubeVideoId":"Wk2Cy7tDB9I"}}}" src="https://www.youtube.com/embed/Wk2Cy7tDB9I?origin=https%3A%2F%2Fpublish-p126202-e1235109.adobeaemclou..." frameborder="0" allowfullscreen="" allow="autoplay; fullscreen" aria-label="YouTube Video" id="youtube-carousel"></iframe>
Still its is not triggerring and GA4 is not in my site.
Views
Replies
Total Likes
Your url params still look encoded?
Views
Replies
Total Likes
Can you share the documentation you are following... the issue is with building the library? So it's not even to testing the tracking yet?
Views
Replies
Total Likes
I have attached the file which i referred for implementation
Views
Replies
Total Likes
Adding to the above, i published the extension "video tracking for youtube" the build was successful, when i created the dataelement using the extension then the build was failed, I interrupted in the console and got to know getVideoData() is not defined from console even when the iframe_api is loaded.
Views
Replies
Total Likes
Hmm if you are just using YouTube videos, have you tried this extension instead:
Yuhui is a Community Advisor here too... and while I had trouble getting this to work reliably (again, may have just been our old site), I know a lot of people have used this one instead.
Views
Replies
Total Likes
Even I tried using the YouTube playback extension, creating rules & data element were all successfully build but when I load the website page displays YouTube playback id error and return the black blank screen. I have also connected with him on above and working on it.
Hmm interesting... I don't use either extension at this time, but if you are willing to share a URL with me (through a private message), I can try to see if I can see anything from front end debugging.
Views
Replies
Total Likes
I have pinged you personal message @Jennifer_Dungan
Views
Replies
Total Likes
Views
Likes
Replies