Quantcast
Channel: Matomo forums - Latest topics
Viewing all articles
Browse latest Browse all 14012

Media Analytics: scanForMedia Parameter does not work for youtube videos

$
0
0

@ingmar wrote:

We discovered the following issue:

scanForMedia Parameter does not work for youtube videos

Given an embedded youtube video, e.g.:

we want to call “scanForMedia” and limit the scan to

as documented here:
https://developer.piwik.org/guides/media-analytics/reference#scanformediadocumentorhtmlelementtoscanformedia

However, the call to scanForMedia(divVideo) fails: If scanForMedia finds a youtube video, it attempts to call createElement(“script”) on its parameter (the video div in our case). This will only work on the document. Therefore we cannot limit the scan for embedded youtube videos. (NB: In contrast, it does work for html5 videos.)

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 14012

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>