HTML5 Video Tracking doesn't collect Wistia video titles correctly


The HTML5 Video Tracking tag assumes that there is a title attribute present on the <video> element, however in the case of Wistia this is not true. There is no way, using Wistia’s embed code, to include a data-video-title attribute.

Wistia injects JSON+LD in the <head>, and that is where the video title is rendered. Example:

Might I suggest that rather than assuming an HTML attribute to fetch the title, we modify to either allow a variable OR a CSS selector for the title? This would still allow the HTML title attribute to be used if present, but also allow for more flexibility around where the title is fetched from.

In the case of JSON+LD, the title can be accessed using:



Hi! Thanks for the valuable input. Adding a feature request to the backlog.

One more thing: could you link an example website where this player is implemented?

Hi @kuba,
are there any updates on this topic yet?

Hi @kuba, any updates on this?

There’s no eta yet. Can you provide an example site with this player implemented?

For example on this page:

Below is the Google Tag Manager recipe (contains tags, triggers, variables) for tracking Wistia Videos via HTML5. I believe this could easily be modified by the Piwik team and added to the official libray of Piwik tags. It leverages the Wistia JavaScript API

@kuba checking to see if you think this can be modified and supported by Piwik Pro

Hi. Thanks for sharing that. Indeed, our Tag Manager and GTM have really similar architecture so it should work.