Youtube tracking using Data Collection
Hello community,
I am trying to track youtube videos using the extension but is not working -
I am following the documentation from:
The videos in the site are embed using <iframe>
and I checked the documentation: https://developers.google.com/youtube/player_parameters#Manual_IFrame_Embeds
and seems to be correct.
I just need to track when a video starts.
The url of the video contains the parameters: enablejsapi = 1 and the id:
id="yt-1920397041" src="https://www.youtube.com/embed/<videoUrl>?autoplay=0&start=0&rel=0&modestbranding=1&enablejsapi=1&version=3"
I am currently facing two issues:
1- a CORS error:
"Access to XMLHttpRequest has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
"
I understand that it can be because it doesn't contain the: origin parameter - Do you think it can be that?
2- in the rule I have created for testing, in the action I just write in the console when the rule fired, but nothing is happening -
Is there someone who is tracking videos using this extension? or using a custom code? Or the only solution is to create the mix between Adobe and GTM ?
Thank you all in advance,
Kind regards,
Ivan.-