homepage Welcome to WebmasterWorld Guest from 54.211.219.178
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
Event tracking with Google analytics
How to setup?
easy company80




msg:4158980
 6:28 am on Jun 25, 2010 (gmt 0)

I want to setup event tracking with analytics on a blog post on a site running wordpress. My objective is to see exactly how many views that post gets and how many clicks on the image accompanying the post.

I am reading through Google's guide to this and they gave an example for the script to insert for tracking the plays of a video:

<a href="#" onClick="_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby\'s First Birthday']);">Play</a>

So for my custom event if I were to change 'Video' (the category name) to 'blog post' and 'PLay' (action name" to 'clicks' would that work?

Also where exactly on the site would I insert this code?

 

easy company80




msg:4159685
 4:21 am on Jun 26, 2010 (gmt 0)

No one know how to do this? I've tried the google help but I'm still pretty clueless :(

lostdreamer




msg:4169121
 10:24 am on Jul 13, 2010 (gmt 0)

It should work when changing the names in the code.

The amount of views of the blogpost would be better handled by the normal (trackpages) action of analytics, the clicks on the image could be done with the above mentioned code.

Just put the onclick="...." in the <img> tag

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved