How to Track Events, Links / Images Traffic in Google Analytics?

"That which is measured, Improves". Having an entrepreneurial mind set, you would keep improving your blog and websites which more strategies. The best way to keep track of the success is to measure how they are performing and not by just going with your gut-feeling.

The same is the case with various Inbound or Outbound links that you might want to keep track of. There are can affiliate banners, eBook download links, a certain advertisement or a webinar call, what ever may that be, you can very easily track them in Google Analytics with the help of 'Event tracking'.

undestanding_analytics_event_tracking


Note: There is a quick confusion I need to make clear here is that with Event tracking in Analytics, you don't need to setup anything within Analytics it' self. You don't even need to open it.

Simply add the follow link of code for your links that you want to track and Analytics will  start tracking traffic for it right away. After 30min to 1 hour, you can visit Google Analytics (more below) and get inspired from the results measured.

How to Track Event links in Google Analytics: Walk - Through


Step#1 Setting Up code on your website/blog


Add the following code to the links on your website that you want to track. A general link would look like:

<a href="#">My link Name</a>

Now you need to add the event tracking code to the links as shown below. The Anatomy of the Event tracking code is as follows.



<a href="#" onClick="_gaq.push(['_trackEvent(category, action, opt_label, opt_value, opt_noninteraction)']);">Play</a>

You can notice different tags with in the above code like:

Category, action, opt_label, opt_value, opt_noninteraction. You only need to take care of the first 3 and leave out the rest. To track the coming via your links, you would only require to set the first 3 tags.

Example:


Below is an example for a video link on your blog.

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


You can name these tags to what ever you want. They can be totally random and as per your choice, though it's better to choose a logical word so that it would make sense to you once you see the results in Google Analytics later on.

Another Example


I have utilized Event tracking to track the clicks on BloggingeHow's Bluehost affiliate banner and other links on the blog. You can take a look at the code below that I have placed.

<a  href="#" onclick="_gaq.push(['_trackEvent', 'Inbound Link', 'WordPress Setup', 'From Sidebar banner to WP Setup Service']);">

Step#2 Analyize the results in Google Analytics


Now, open up Google Analytics account and click Behavior >> Events >> Top Events to see the results coming from your tracking code. Take a look at the image below.

event tracking in google analytics bloggingehow


Hope that helped. That's pretty much  it to it. Happy tracking links on your blog/website.

Till, next time, peace.

You can now read: 

Share this

Related Posts

Previous
Next Post »