You are here: Home OCMu Training Training archive Advanced Google Analytics Samples

Advanced Google Analytics Samples

by Rushton,Jeff last modified Oct 21, 2011 05:28 PM

Google Analytics Lessons
Take GA IQ Lessons

Crazy Egg Analytics additional heat-map tracking

Setting Goals
Watch video

Campaigns - coming in
URL Builder
Sample URL:
http://louisville.edu/ocm/ocm-u/training-archive/advanced-google-analytics-samples.html?utm_source=OCMu&utm_medium=website&utm_term=OCMu%2BAdvanced%2BAnalytics&utm_content=Advanced%2BAnalytics%2BStuff&utm_campaign=OCMu%2BTest

Click Tracking - within your site
Events
Events should be used to track actions or anything that you would like to track that wouldn't be considered a "pageview."
Examples could include; form submission, clicking an external link, interacting with a Flash movie (that wouldn't be considered a "page"), video plays, downloads, image map actions, etc.

Event Tracking
  • onClick="_gaq.push(['_trackEvent','Videos', 'Play','Welcome to UofL\'s Video']);"
  • Anatomy = 1-Category, 2-Action, 3-Label (optional), 4-Value (optional), 5-Count (optional)
  • Category
    • Example1: 'Videos', 'Play', 'Welcome to UofL\'s Video'
    • Example2: 'Videos', 'Pause', 'Welcome to UofL\'s Video'
    • Example3: 'Videos', 'Stop', 'Welcome to UofL\'s Video'
  • Values
    • A value can be a count or a value that equates against your implicit count
    • Example: 'Video' value = 10 (for seconds) + 'Video' count = 1 (one video watched)
    • Example: onClick="_gaq.push(['_trackEvent','Videos', 'Play','Welcome to UofL\'s Video', 10, 1]);"
NOTE: Events do not generate page views, which can set Goals in the old Analytics. To create a 'virtual' pageview, you can use the following example: (The new analytics lets you set goals with Events)


Additional, non implemented internal tracking options
TimeTracker()
MouseOverTracker()

Social interaction tracking
Sample1: _gaq.push(['_trackSocial', network, socialAction, opt_target, opt_pagePath]);
Sample2: _gaq.push(['_trackSocial', Facebook, Like, targetUrl, /ocm/social/]);
sample code | sample page

FLASH
Tracking within Flash movies
  • Gatorflash ActionScript plugin to track analytics within Flash
Document Actions



Need help?
Email us or call 852-6171.

 
Personal tools