Okay, I just finished updating the newest version 2.7 of Hana FLV Player.
It's been a long time since I worked on the plugin last time, so I had few difficult times.
I have fixed 1 reported bug and 2 requested features.
* Fixed "Missing quicktag button in the HTML editor" problem with WordPress v3.3+
* Added Event Tracking in Google Analytics for Flow Player 3 (player 4) only
* Auto height setting feature added. If height is not defined, it will be auto calculated.
The Google Analytic Event Tracking feature was mentioned several times in the past, but I just was not sure what to do and didn't have enough time.
If you are not familiar with Google Analytics ( http://www.google.com/analytics/ ), I suggest you create the account right now and try it for yourself. It's a website analysis and reporting tool showing how many people have been visiting your website. It is free and very powerful, also allows customized report. One of the feature is event tracking. It is basically a kind of report tool that you can assign a specific event for an action (for example clicking a link) and you can later on see the report on the events.
Once you register your domain in the Google Analytics, you need to implement the tracking code in your Wordpress site.
Here is a sample of the tracking code. This one is old one.
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("YOUR-TRACKING-ID");
pageTracker._trackPageview();
} catch(err) {}</script>
This one is newer one.
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'YOUR-TRACKING-ID']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
I have implemented to support both version, but if you find any problem, let me know.
Now, you can directly copy and paste the code into the Wordpress theme files that you are using. Typically index.php file in your theme folder under wp-content/themes folder. While this is the easier method, I suggest you use a plugin such as 'WP Hooks'. The advantage of using plugin is that you can easily change theme and don't need to worry about the tracking code.
Once you are done with the tracking code, you can start the Event Tracking right away.
However, You need to
1. Use only Flow Play version 3
2. Turn on the event tracking by setting to 'Yes' for Event Tracking default setting under Hana Flv Player setting page.
Once enabled,
Below Google Analytic information is hard coded and can not be chaged at this time.
- Category:"Videos"
- Actions: "Play" (When video is started),"Pause" (When video is paused),"Stop" (When video is stopped),"Finish" (When video is finished)
- Additional played time information is availabe for "Pause" and "Stop"
You should test with your video files, but the events do not appear in Google Analytics right away. It seems there is about 10 or more minutes delay. To access the Event report, click on the 'Content', 'Events', and 'Top Events' in the left side menu. You can browse by Event Category, Action, and Label. Category will be always 'Videos', and the Actions will be 'Play','Pause','Stop',and 'Finish'. The Label will be the Video file URL address. Note that there is additional value is available under Avg. Value column. It is applied only to Pause and Stop. This is the number of seconds the video was played before the video was paused or stopped.
Now, this is basically all that I know of the events report feature of Google Analytics. If you have any nice ideas and would like to implement, please let me know.
Thank you for using my plugin.
Bye!
not a support question