Track video player actions (and see on which URL this happend)

First of all: I’ve been using Piwik for years and it’s awesome! Thanks for everyone how contributes to this project!

I have a video site (like a tiny youtube) and want to track the video views.
As far as I know I can do this either with goals or custom variables.
I tested both and it is was no problem to extend my video player to call piwik to manually reach a goal or to pass a custom variable.
So far no problem.

The think is: as far as I understand the concept of goals the reached goal is independent from the page where it was archived.
So I can not see which video was for example started (I have the goals “video started by user” and “user watched whole video”).
First I thought I can add the two goals and can later see where they were reached (for example on http://mydomain/watch/video123).
But as it seem I would have to add two goals for each video, to be able to see which of the many videos were watched (the goals for each video would be for example: “video123 started by user” and “user watched whole video video123”).
Is this correct? Or is it possible to only have two gaols and use them for every video (and be able to see how often the goals for http://mydomain/watch/videoXYZ was reached and what that is in % of all the impressions of this URL)?

And secondly:
I would like to give the users access to this stats. What would be the cleverest solution for that? As far as I looked into it I could add a separate website in Piwik for every of my users (which would be bad because I guess then I couldn’t see the stats for the whole website at once because it is split in many piwik sites).
Or I could have only one site in piwik but give a custom variable “ownerOfVideo” everytime a video of a user is watched. I could then use the API to give the user access to the stats by passing the “ownerOfVideo” value along witch the APIs segmentation feature when i grab the data.

I would be grateful for any advice! Thanks!

I think I would use custom variables for tracking events (until we finally implement some event tracking!), and track data in separate websites to provide user access to stats.

But aren’t the custom variables assosiated with a visitor (either with his visit or with an impression) and not with a URL?
Or is it possible to see which variables where triggered for a specific URL?

We now have a Media Analytics plugin that tracks Videos & Audio!

More information is available here: The plugin gives useful insights into media / video / audio analytics and adds many new reports, widgets and segments to Piwik.

Works with HTML5 video & audio, Vimeo and YouTube out of the box. Support for other players can be added easily and is documented in the developer docs. We are also happy to add support for more players upon request, please ping us. After installation the plugin will in most cases directly start tracking data see the setup guide

For a full list of features check out . Docs are available at FAQ, User Guide, Developer docs