JoomlaWorks

Member Dashboard
  • Home
  • Extensions
    • Commercial
      • Frontpage Slideshow
      • K2 Plugin for sh404SEF
      • Simple Image Gallery Pro
      • SocialConnect
    • Free
      • K2
      • AllVideos
      • DISQUS Comments for Joomla!
      • IAKI (Import As K2 Image)
      • Quick Menu (for Joomla 4)
      • Simple Image Gallery
      • Simple RSS Feed Reader
    • Free On Github
      • Akismet for Kunena
      • Fill It Up
      • K2 Example Plugin
      • K2 Links for JCE
      • Rebuild K2 Image Cache (CLI utility for K2)
      • TinyLetter Subscribe
      • URL Normalizer
      • User Extended Fields for K2
  • Templates
    • Commercial Templates
      • Anagram
      • Archetype
      • BusinessOne
      • Ibento
      • Janaro
      • Kiji
      • Matchbox
      • nuMuzik
      • RadioWave
      • Toreda
    • Free Templates
      • nuModusVersus
      • Takai
  • Demos
    • Joomla Extension Demos
    • Joomla Template Demos
    • WordPress Plugin Demos
  • Labs
    • Web Apps
      • JSON 2 JSONP
      • Feed Reader (bookmarklet)
      • Device Info
  • Support
    • Documentation for Joomla Extensions
      • AllVideos
      • Frontpage Slideshow
      • Simple Image Gallery
      • Simple Image Gallery Pro
      • SocialConnect
    • Documentation for Joomla Templates
      • General Resources
        • Installation
        • Content
        • Customization
      • Commercial Templates
      • Free Templates
    • Get Help
      • Community Forum
        • Recent Topics
        • Categories
        • Create free account
      • Help Desk
      • Contact us by e-mail
      • Contact us on Facebook Messenger
      • Contact us on Twitter
  • About
    • Blog
    • Company
    • License & Terms of Service
    • Privacy Policy
  • My Account
03 06 2011
Written by  JoomlaWorks
Published in Blog
Tagged under
  • +event tracking
  • +getk2.org
  • +google analytics
4 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 136718 times

4 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/

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.

back to top
BY MAIL BY RSS

Archives

  • May 2024 (1)
  • March 2023 (1)
  • January 2022 (1)
  • July 2021 (2)
  • May 2021 (1)
  • February 2021 (1)
  • December 2020 (1)
  • September 2020 (1)
  • June 2020 (1)
  • May 2020 (1)
  • February 2020 (1)
  • January 2020 (5)

Tag Cloud

1.6 allvideos announcement apache community cpanel development frontpage slideshow future joomla k2 opinion plugin release simple image gallery simple image gallery pro simple rss feed reader socialconnect update video

Latest Entries

  • K2 will not be made available for Joomla 4/5 - change of course
    Written by  JoomlaWorks
    30 May 2024
  • New free extension release: Quick Menu (for Joomla 4)
    Written by  JoomlaWorks
    06 Mar 2023
  • Simple Image Gallery (free) v4.2 released
    Written by  JoomlaWorks
    07 Jan 2022
  • Simple Image Gallery Pro v3.9.1 released (bug-fix release)
    Written by  JoomlaWorks
    26 Jul 2021
  • Simple Image Gallery Pro v3.9.0 released
    Written by  JoomlaWorks
    05 Jul 2021

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
  • GitHub
  • Facebook
  • GitHub (K2)
  • YouTube
  • Speaker Deck

Grab Our Feeds

  • Extension Updates
  • Blog
  • Videos
  • Presentations
Copyright © 2006 - 2025 JoomlaWorks Ltd.
JoomlaWorks Ltd. and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
designed by Nuevvo