WP Marketing » Tag: event tracking - Recent Posts http://wpmarketing.org/forum/tags/event-tracking Wordpress for Internet and Affiliate Marketing en-US Tue, 17 May 2016 11:54:04 +0000 http://bbpress.org/?v=1.0.2 <![CDATA[Search]]> q http://wpmarketing.org/forum/search.php hanadaddy on "Event Tracking in Google Analytics" http://wpmarketing.org/forum/topic/event-tracking-in-google-analytics#post-494 Wed, 11 Apr 2012 00:30:38 +0000 hanadaddy 494@http://wpmarketing.org/forum/ <p>Ok now it's implemented in version 2.7. Check it out. </p> hanadaddy on "HOWTO: Google Analytics Event Tracking with Hana Flv Player" http://wpmarketing.org/forum/topic/howto-google-analytics-event-tracking-with-hana-flv-player#post-493 Wed, 11 Apr 2012 00:27:20 +0000 hanadaddy 493@http://wpmarketing.org/forum/ <p>Here are the screen capture image that I forgot to add</p> <p> <a class='bb_attachments_link' href='http://wpmarketing.org/forum/?bb_attachments=493&bbat=31'><img src='http://wpmarketing.org/forum/?bb_attachments=493&bbat=31&inline' /></a> <a class='bb_attachments_link' href='http://wpmarketing.org/forum/?bb_attachments=493&bbat=32'><img src='http://wpmarketing.org/forum/?bb_attachments=493&bbat=32&inline' /></a> </p> hanadaddy on "HOWTO: Google Analytics Event Tracking with Hana Flv Player" http://wpmarketing.org/forum/topic/howto-google-analytics-event-tracking-with-hana-flv-player#post-492 Wed, 11 Apr 2012 00:26:23 +0000 hanadaddy 492@http://wpmarketing.org/forum/ <p>Here are the screen capture image that I forgot to add</p> <p> <a class='bb_attachments_link' href='http://wpmarketing.org/forum/?bb_attachments=492&bbat=29'><img src='http://wpmarketing.org/forum/?bb_attachments=492&bbat=29&inline' /></a> </p> hanadaddy on "HOWTO: Google Analytics Event Tracking with Hana Flv Player" http://wpmarketing.org/forum/topic/howto-google-analytics-event-tracking-with-hana-flv-player#post-491 Wed, 11 Apr 2012 00:25:12 +0000 hanadaddy 491@http://wpmarketing.org/forum/ <p>Here are some screenshot I forgot to add </p> hanadaddy on "HOWTO: Google Analytics Event Tracking with Hana Flv Player" http://wpmarketing.org/forum/topic/howto-google-analytics-event-tracking-with-hana-flv-player#post-490 Tue, 10 Apr 2012 20:28:01 +0000 hanadaddy 490@http://wpmarketing.org/forum/ <p>Okay, I just finished updating the newest version 2.7 of Hana FLV Player.<br /> It's been a long time since I worked on the plugin last time, so I had few difficult times.</p> <p>I have fixed 1 reported bug and 2 requested features.</p> <p>* Fixed "Missing quicktag button in the HTML editor" problem with WordPress v3.3+<br /> * Added Event Tracking in Google Analytics for Flow Player 3 (player 4) only<br /> * Auto height setting feature added. If height is not defined, it will be auto calculated.</p> <p>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.</p> <p>If you are not familiar with Google Analytics ( <a href="http://www.google.com/analytics/" rel="nofollow">http://www.google.com/analytics/</a> ), 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.</p> <p>Once you register your domain in the Google Analytics, you need to implement the tracking code in your Wordpress site. </p> <p>Here is a sample of the tracking code. This one is old one.</p> <pre> &lt;script type="text/javascript"&gt; 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")); &lt;/script&gt; &lt;script type="text/javascript"&gt; try { var pageTracker = _gat._getTracker("YOUR-TRACKING-ID"); pageTracker._trackPageview(); } catch(err) {}&lt;/script&gt; </pre> <p>This one is newer one.</p> <pre> &lt;script type="text/javascript"&gt; 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); })(); &lt;/script&gt; </pre> <p>I have implemented to support both version, but if you find any problem, let me know.</p> <p>Now, you can directly copy and paste the code into the Wordpress theme files that you are using. Typically <code>index.php</code> file in your theme folder under <code>wp-content/themes</code> 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. </p> <p>Once you are done with the tracking code, you can start the Event Tracking right away.<br /> However, You need to </p> <p>1. Use only Flow Play version 3<br /> 2. Turn on the event tracking by setting to 'Yes' for Event Tracking default setting under Hana Flv Player setting page.</p> <p>Once enabled, </p> <p>Below Google Analytic information is hard coded and can not be chaged at this time.</p> <ul> <li>Category:"Videos" </li> <li>Actions: "Play" (When video is started),"Pause" (When video is paused),"Stop" (When video is stopped),"Finish" (When video is finished)</li> <li>Additional played time information is availabe for "Pause" and "Stop"</li> </ul> <p>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.</p> <p>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.</p> <p>Thank you for using my plugin.<br /> Bye! </p> hanadaddy on "Event Tracking in Google Analytics" http://wpmarketing.org/forum/topic/event-tracking-in-google-analytics#post-488 Mon, 09 Apr 2012 15:50:10 +0000 hanadaddy 488@http://wpmarketing.org/forum/ <p>Thanks I will take a look at it. </p> paulk on "Event Tracking in Google Analytics" http://wpmarketing.org/forum/topic/event-tracking-in-google-analytics#post-487 Mon, 09 Apr 2012 15:08:32 +0000 paulk 487@http://wpmarketing.org/forum/ <p>I tried editing the hana-flv-player.php to this</p> <p><code>&lt;script type='text/javascript'&gt;<br /> flashembed('$flow_id',<br /> { src:'".$this-&gt;plugin_url."/".$this-&gt;player_base[$player]."/FlowPlayerDark.swf', wmode: 'transparent', width: ".$flv_attr['width'].", height: ".$flv_attr['height']." },<br /> { config: { $videoFile autoPlay: ".$flv_attr['autoplay']." ,loop: ".$flv_attr['loop'].", autoRewind: ".$flv_attr['autorewind'].", autoBuffering: ".$flv_attr['autoload'].",<br /> $splashImage initialScale: 'scale' " . $flv_attr['more_2'] . "<br /> $playList<br /> }}<strong>,<br /> { clip: {<br /> // track start event for this clip<br /> onStart: function(clip) {<br /> _tracker._trackEvent("Videos", "Play", "Main Video");<br /> }}}</strong><br /> );<br /> &lt;/script&gt;</code></p> <p>But that returned a fatal error. </p> paulk on "Event Tracking in Google Analytics" http://wpmarketing.org/forum/topic/event-tracking-in-google-analytics#post-486 Mon, 09 Apr 2012 15:03:28 +0000 paulk 486@http://wpmarketing.org/forum/ <p>You can check out the flowplayer article about how to set up GA in flowplayer. That may give you a good idea where to start/what code you need to have it create. </p> <p><a href="http://flowplayer.org/demos/events/google-analytics.html" rel="nofollow">http://flowplayer.org/demos/events/google-analytics.html</a> </p> hanadaddy on "Event Tracking in Google Analytics" http://wpmarketing.org/forum/topic/event-tracking-in-google-analytics#post-484 Mon, 09 Apr 2012 14:44:53 +0000 hanadaddy 484@http://wpmarketing.org/forum/ <p>There is no such function yet but I am looking into it. Never used Google Analytic event tracking before. So it may take some time. </p> paulk on "Event Tracking in Google Analytics" http://wpmarketing.org/forum/topic/event-tracking-in-google-analytics#post-483 Mon, 09 Apr 2012 13:59:33 +0000 paulk 483@http://wpmarketing.org/forum/ <p>Could you add a way, if there isn't already, to track these Hana FLV videos as an event in Google Analytics? If there is already a way, please let me know. Thank you very much! </p>