Hi James,
that would be my pleasure to help you . I am not 100% sure of the answer, I guess it depends of the video player, could you please either tell me the video player or the web page in which the video is included?
Thanks for the example, I clearly identify your needs now. It is feasible but not trivial I would say.
In fact as it is an iframe, the interaction is not happening on the page, so we need to discuss with YouTube API to get the data from it.
It is basically some code you need to copy and paste but I have not the expertise to audit it.
I did not try it yet, but it should work fine if you follow this tutorial and adapt it: https://www.lunametrics.com/blog/2015/05/11/updated-youtube-tracking-google-analytics-gtm/
You are welcome Ronan. I will take your advice and let you know how it turns out.
For years I have used Google Tag Manager, but as you can see, I now want to localize all my website’s data stats.
I think it is going to work out. Some years ago I did it with 7tag and it works so no reason that it won’t with Matomo Tag Manager. My only concern is that I do not know what the code from lunametrics is doing but I guess it should be fine.