JoomlaWorks

  • Extension Demos
  • Community Forum
  • K2
  • JoomlaReader
login

  • Forgot your password?
  • Home
  • About
    • Company
    • License & Terms of Service
  • Extensions
    • Commercial Premium
      • Frontpage Slideshow
      • K2mart
      • Simple Image Gallery Pro
      • SocialConnect
      • SuperBlogger
    • Free Premium
      • AllVideos
      • DISQUS Comments for Joomla! (package)
      • K2
      • Simple Image Gallery
      • Simple RSS Feed Reader
      • Tabs & Sliders [for articles] (plugin)
      • Tabs & Sliders (module)
      • Ultimate Content Display
    • Free
      • Latest Tweets
      • TinyLetter Subscribe
      • User Extended Fields for K2
  • Docs
    • AllVideos
    • Frontpage Slideshow
    • Frontpage Slideshow [Standalone]
    • K2mart
    • Simple Image Gallery
    • Simple Image Gallery Pro
    • SocialConnect
    • SuperBlogger
    • Tabs & Sliders (module)
  • Blog
  • Contact
  • My Account
03 06 2011
Written by  Fotis Evangelou
Published in Blog
Tagged under
  • +event tracking
  • +getk2.org
  • +google analytics
5 comments

"Getting serious" with Google Analytics event tracking - know your users' behavior

"Getting serious" with Google Analytics event tracking - know your users' behavior

A couple of months ago I stumbled upon a website in which the source code included some funky tracking events of Google Analytics (GA) inside the site's links... To be honest, I didn't know at that point Google Analytics could be extended like that, so I dug deeper to learn more.

If you're not an SEO expert using buzzwords like ROI, SEM, CPR etc., you're probably using GA for browsing page views, visitor count, browser percentages etc. Turns out, GA offers at a "basic level" the option to track unique events on your website, e.g. a click on a link or a file download. Which makes statistics viewing way more interesting...

Consider this simple example: getk2.org has around 20 links that rarely change. I wanted to know how many people download K2 from this particular website (and not some third party source), how many people click on the documentation, how many get the SVN version of K2 and so on...

Having read the manual over at GA help, I came down to some basic event tracking usage with GA on getk2.org. The goal was to see for the first time how users "behave" inside getk2.org and not just how many come in. GA event tracking organizes results in this manner: Categories, actions, labels. That translates to specific "pages" (or some entire section in your site, e.g. Sports news), things that we anticipate users to do (e.g. click on a link or download a file) and finally, names of the actual links being clicked (e.g. "K2 main file download"). If you're not lost, bare with me for a sec...

First off, I only wanted to track the K2 homepage (getk2.org) so I used 1 "category" in my events: "K2 Homepage"

Secondly, I divided my anticipated "behaviors" (the "actions" in GA lingo) into just 2: visit (for links) and download (for file downloads).

Thirdly, I labeled all links to be tracked in a way that makes sense to me... So the K2 download button is labelled as "Stable release". I don't need to mark it as "Stable release download", because I've already assigned to that link the right "action" (Download).

So I prepare these "onclick" JS events, to add them into my homepage links... well, the most important ones... And I let GA track those event for around 2 monts...

To give you an example of such an event:

1
<a href="http://domain.com/about.html" onClick="_gaq.push(['_trackEvent', 'My homepage', 'Visit', 'About Us']);">About Us</a>

Now I come back to GA and go (on the left sidebar) to Content >> Event Tracking and I can see how my visitors behaved... Well, here's a surprise! I didn't know so many people where downloading the SVN release! Needless to say, the results where very encouraging! I won't go into detail, but it's worth trying this on your own.

If you want a solution that hooks up GA tracking events in Joomla, I can't say I know any specific... If you do, please let everyone know in the comments.

But it should not be difficult to implement these events, e.g. in K2 attachment downloads or in other components... Maybe a plugin could also attach such events using JS automatically onto any link that is a file (e.g. PDF, ODF etc.). Or a combination of JS and Joomla PHP to use e.g. the "title" of the link to create the "label", the file extension in links to determine the "action" and the current page (by Joomla) to assign the "Category".

I hope you enjoyed this small introduction into GA tracking events. You can see how to attach these events by examining the source code in: http://getk2.org

Read 24102 times
Tweet
More in this category: « JoomlaDay Greece 2011 a success! Cloud.com, recently acquired by Citrix for $250m is running on Joomla! & K2 »

5 comments

  • SkyGlue SkyGlue 22 Jun 2012
    Comment Link

    Please allow us to introduce our event tracking automation tool here since our product is closely related to this discussion. Skyglue is a simple yet powerful online visitor behavior tracking tool to complement Google AnalyticsSkyGlue automates Google Analytics event tracking. All the on-page activities such as link clicks, buttons, videos, images, etc. can be tracked automatically with just copying one line of JavaScript to your webpage. SkyGlue's individual visitor life-time behavior tracking capability gives you full detail on how your visitors engage with your site.

  • david daly david daly 26 Mar 2012
    Comment Link



  • turtlemonvh turtlemonvh 26 Jan 2012
    Comment Link


    Thanks for the helpful info!

  • analyticsjoomla analyticsjoomla 18 Sep 2011
    Comment Link


    Excellent post! I personally love Google Analytics. Check out this Google Analytics for Joomla blog with more ideas on how to get insights with Google Analytics for your Joomla website.
    http://www.analyticsforjoomla.com/blog/" rel="nofollow">http://www.analyticsforjoomla.com/blog/

  • Steve Adams Steve Adams 22 Jun 2011
    Comment Link



Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

back to top
BY MAIL BY RSS

Archives

  • March 2013 (1)
  • February 2013 (1)
  • September 2012 (1)
  • August 2012 (1)
  • October 2011 (1)
  • July 2011 (1)
  • June 2011 (1)
  • May 2011 (1)
  • April 2011 (2)
  • March 2011 (2)
  • February 2011 (2)
  • January 2011 (1)

Tag Cloud

1.6 alex kempkens athens centos component cpanel event fotis evangelou greece jab10 j and beyond johan janssens joomla joomladay k2 max milbers nooku pecl presentation video

Fresh from our Blog!

  • 07 Mar 2013 Simple Image Gallery Pro version 3 and a new design approach for our components
    Written by Fotis Evangelou
  • 19 Feb 2013 SocialConnect - a new Joomla! extension for better social reach & user engagement
    Written by Fotis Evangelou
  • 09 Sep 2012 Resizing the disk space on Ubuntu Server VMs running on VMware ESXi 5
    Written by Fotis Evangelou
  • 16 Aug 2012 How to create a zip file of all Google Web Fonts on a Mac
    Written by Fotis Evangelou
  • 01 Oct 2011 Joomla! forks you may have never heard of
    Written by Fotis Evangelou

Join Our Newsletter

Enter your e-mail address to subscribe to our new or updated product notifications. We send combined newsletters, so we won't spam you every week :)

Get Social

  • Twitter
  • YouTube
  • Facebook
  • Twitpic
  • Google+
  • Speaker Deck
  • Google Code Project

Grab Our Feeds

  • Extension Updates
  • Blog
  • Videos
  • Presentations
Copyright © 2006 - 2013 JoomlaWorks Ltd.
Joomla! is a registered trademark of Open Source Matters, Inc. JoomlaWorks Ltd. is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.
designed by Nuevvo