You have to give it to Flash. It has stuck around for a long time. Even when JavaScript can now do most of the interactive effects on the page, Flash is still useful when it is used in the right places. One thing Flash works well with is movies, and with movies you'll want to track plays, pauses, and stops among other things as events.
We won't go deep into Flash here, just point you in the right direction if you know enough Flash to edit ActionScript. First, you need to know what version of ActionScript you are using, either ActionScript 2 or ActionScript 3.
We are going to make this simple. We are only going to embed an SWF movie file into a web page with a play button, and we are going to only track clicks on this play button as an event. In this same web page, you will have your standard Piwik tracking code already in place.
In ActionScript 2, we will have to use the getURL
method to set the custom variables we will be using to track...