Event Tracking for Google Analytics: Wordpress Edition

50 %
50 %
Information about Event Tracking for Google Analytics: Wordpress Edition
Marketing

Published on March 20, 2014

Author: GravitateDesign

Source: slideshare.net

Description

This is a slide share from a presentation on Event Tracking for Google Analytics, specifically working with Wordpress however, the same principles could be applied to other website platforms.

We have found that using this technique works very well, especially if you have plans on growing your site. Once the code is added, going forward each element you want to track you'll just need to add a title and class to it.

We have a full blog post on this that can be read at our site: www.gravitatedesign.com

Event Tracking for Google Analytics: Wordpress Edition

Event Tracking for Google Analytics: Wordpress Edition A Little Recap: Event Tracking Event tracking is a feature of Google Analytics that allows site owners to trace actions on their site, even when a URL change is not recorded. Standard GA: _gaq.push([‘_trackEvent’,’Category’,’Action’,’opt_label’,’opt_value’]) Universal: ga(‘send’,’event’,’category’,’action’,’opt_label’, opt_value)

Event Tracking for Google Analytics: Wordpress Edition Steps to take: l  Decide what events are to be tracked l  Categorize these events into similar buckets l  Write and add code to the site l  Add class to events to be tracked To Set Up Event Tracking

Event Tracking for Google Analytics: Wordpress Edition Items on site: l  Click to the videos section? l  Click the form submit button? l  Click to download a file? l  How many times social links are clicked? Step 1: What to Track? For  this  presentation,  let’s  say  you  are  managing  a  medical  website  and  a  Dr.  is  releasing  a  preview  to  his   journal  article.  The  page  includes  a  link  to  videos,  form,  download  link,  and  social  icons.      

Event Tracking for Google Analytics: Wordpress Edition Items to categorize: l  For videos, lets call the category ‘Videos’ and the Action ‘Play’ l  For forms lets call the category ‘Forms’ and the Action ‘Completion’ l  For journal downloads lets call the category ‘JournalArticles’ and Action ‘Download’ l  For social links lets call the category “Social” and the Action “View” Step 2: Categorize

Event Tracking for Google Analytics: Wordpress Edition Code to add: Step 3: Add Code <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>     jQuery(function($){ if  (typeof(_gaq)  !==  'undeFined')  //  Check  if  Google  Analytics  is  Loaded   {           //  Video  Tracking  for  Google  Analytics       $('.video-­‐track').click(function(e){_gaq.push(['_trackEvent',  'Videos',  'Play',  'Video_'+$(this).attr('title')+'_'+location.href]);    });       //  Form  Tracking  for  Google  Analytics       $('.form-­‐track).click(function(e){_gaq.push(['_trackEvent',  ’Form',  ’Completions',  'Form_'+$(this).attr('title')+'_'+location.href]);    });       //  Journal  Tracking  for  Google  Analytics       $('.journal-­‐track').click(function(e){_gaq.push(['_trackEvent',  'JournalArticles',  'Download',  'Journal_'+$(this).attr('title') +'_'+location.href]);    });       //  Share  Tracking  for  Google  Analytics       $('.social-­‐track’).click(function(e){_gaq.push(['_trackEvent',  'Social',  ‘View’,  'Social_'+$(this).attr('title')+'_'+location.href]);    });     }   });

Event Tracking for Google Analytics: Wordpress Edition For example: <a title=”Doctor John Doe” class=”journal-track” href=”/john-doe-journal-preview.pdf”>Download John Doe’s preview here</a> Class to add: l  video-track l  form-track l  journalarticle-track l  Social-track Step 4: Add Class

Event Tracking for Google Analytics: Wordpress Edition Now Review

Event Tracking for Google Analytics: Wordpress Edition From: Gravitate – www.gravitatedesign.com Presented By: Joe Vernon Read the post at: www.gravitatedesign.com/event-tracking-google-analytics-wordpress-edition/ The End. @gravitatedesign @blondejoev

Add a comment

Related presentations

Brands are more invested today than ever before on curating and distributing paid,...

Marketers need to be creating and publishing original content across many differen...

As content marketing continues to increase in popularity in every industry, more m...

Il Direct Email Marketing (DEM) è una tipologia di marketing diretto che usa la po...

This presentation contains all 120 rules from Part 1 of the 2nd edition of "Email ...

Olá, somos o Paulo Bernardes e o Pedro Silvestre, temos uma ambição em comum de me...

Related pages

Google Analytics Event Tracking - Wordpress Edition

In my previous post, “Event Tracking for Google Analytics: 3-Step Set Up”, I explained an easy way for site owners to set up Google Analytics by adding ...
Read more

google analytics - GA Tracking Event in WordPress - Stack ...

I want to integrate GA Tracking Event on buttons in WordPress. Currently my theme is using ShortCodes and I can add specific .Class to it. [vc_button text ...
Read more

Google Analytics Asynchronous Tracking ... - Google Developers

It activates Google Analytics tracking by ... are the same in both asynchronous and traditional tracking. ... Tracking with HTML Event ...
Read more

How to Add Google Analytics Event Tracking in WordPress ...

Do you want to track user activity while they are on your site? You can track pageviews, referral source, time spent on page, and much more by simply ...
Read more

visitor tracking — Tags — WordPress Plugins

Google Analytics. Easily connects your Google Analytics account with WordPress. By: Amr M. Ibrahim. (10) ... Uses event tracking, ...
Read more

The Marketer’s Guide to Real-Time Reports in Google Analytics

... take advantage of Real-Time reports to extract ... I set up Event tracking code for several ... Google Analytics Resources - The 2014 Edition;
Read more

Google Analytics for the Kaltura Player | Knowledge Center

Google Analytics for the Kaltura Player. ... of cookies and APIs to enter events into a tracking ... A Google Analytics event has the ...
Read more

Digital, Web & Mobile Marketing Analytics - Google ...

Google Analytics lets you analyze data across ads, videos, social tools, websites, tablets, smartphones, and more to get a complete view of customers.
Read more

Google Analytics Tutorial for Beginners - YouTube

Google Analytics Tutorial An in-depth Google ... and understand your Google Analytics account ... Event Tracking In Google Analytics?
Read more