# New YoutTube video tracking and HTML5 video tracking

**URL:** <https://community.piwik.pro/t/new-youttube-video-tracking-and-html5-video-tracking/1768>\
**Category:** Data collection and tags\
**Created:** [March 9, 2023, 10:49am UTC](https://community.piwik.pro/t/new-youttube-video-tracking-and-html5-video-tracking/1768 "2023-03-09T10:49:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arturr](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Arturr](https://community.piwik.pro/u/Arturr)\
**Post date:** [March 9, 2023, 10:49am UTC](https://community.piwik.pro/t/new-youttube-video-tracking-and-html5-video-tracking/1768/1 "2023-03-09T10:49:42Z")

</div>

I have added new version of YouTube video tracking (16.5.0 and above), and it seems like its downgrade of lower version approach.

> **[YouTube video tracking tag | Piwik PRO help center](https://help.piwik.pro/support/tag-manager/youtube-video-tracking-tag/)**
>
> The YouTube video tracking tag helps you collect data about interactions with YouTube videos on your site or app. After setting up this tag, you can see collected data in video analytics reports. To create and set up the YouTube video tracking tag,...

Am I understanding this correctly, that the new way of video tracking is missing some important data, like:

- **Video\_id** e.g The video ID in YouTube, for example `OZJOIwm4y1c` .
- **Total\_length** Video length in seconds, counted from the beginning.

The old version had it all ([How can I collect data about YouTube videos on my site? (custom code) | Piwik PRO help center](https://help.piwik.pro/support/questions/how-to-track-youtube-videos-on-your-website/))

Is there a way of getting this data in YouTube video tracking Tag? (not counting manually implementing extraction scripts and putting them into custom dimension every time).

If there is no way to do that, can you explain why in new approach, mentioned data was removed?

Also, there might be a bug while rewinding video using video tracking Tag:

1. For 100 seconds video length. Tag is configured to report progress every 20% (20, 40, 60, 80, 100)
2. User rewinds almost to the end (about 81-82 seconds in).
3. PiwikPro is sending event “Progress - 20%” with value 82 (seconds) which looks weird on reports
4. video ends and PiwikPro sends “Watched”, no other “Progress” events in between

Is this a bug? or maybe its intended and I dont understand it?  
I think, It would be better if it was 80% progress event in this case, not 20% event.  
Anyway without information about video length, I cant easily know what has happened there, because there are no rewind actions reported.

---

<div class="post-metadata">

**Author:** ![Arturr](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Arturr](https://community.piwik.pro/u/Arturr)\
**Post date:** [March 23, 2023, 12:45pm UTC](https://community.piwik.pro/t/new-youttube-video-tracking-and-html5-video-tracking/1768/2 "2023-03-23T12:45:18Z")

</div>

Still looking for answers to this subject.  
Perhaps Post should be more feature request (and maybe a bug - 2nd part), but I dont really know for now.  
@Admin any chance replying to this?

---

<div class="post-metadata">

**Author:** ![Maciej\_Kowcun](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/maciej_kowcun/32/787_2.png) [@Maciej\_Kowcun](https://community.piwik.pro/u/Maciej_Kowcun)\
**Post date:** [March 23, 2023, 3:34pm UTC](https://community.piwik.pro/t/new-youttube-video-tracking-and-html5-video-tracking/1768/3 "2023-03-23T15:34:05Z")

</div>

Hi, sorry for the late reply.

> Am I understanding this correctly, that the new way of video tracking is missing some important data, like:
> 
> - **Video\_id** e.g The video ID in YouTube, for example `OZJOIwm4y1c` .
> - **Total\_length** Video length in seconds, counted from the beginning.

Yes, you are right. This data is unfortunately not available. By simplifying the implementation of the new solution, we have stopped collecting this data. I have added FR to our backlog to restore this possibility.

> Also, there might be a bug while rewinding video using video tracking Tag:
> 
> 1. For 100 seconds video length. Tag is configured to report progress every 20% (20, 40, 60, 80, 100)
> 2. User rewinds almost to the end (about 81-82 seconds in).
> 3. PiwikPro is sending event “Progress - 20%” with value 82 (seconds) which looks weird on reports
> 4. video ends and PiwikPro sends “Watched”, no other “Progress” events in between

This is a bug. I have added a ticket to the backlog.
