Advanced Google Analytics – Event tracking and multiple accounts

Google Analytics is a very powerful analytics platform that let’s perform very sophisticated aggregate data analysis entirely for free. However, there are some limitations in the service that prevents you from doing certain kind of analysis, particularly around AJAX events. This limitation is a result of the ‘page-load’ paradigm that GA is constructed on, however this article will demonstrate how to extend the PageView model to handle sophisticated AJAX interactions.

They key concept: map events to urls.

Create an Event->URL Map

In more detail; for each event you want to track create a unique URL for when it happens (how to register that URL will be discussed below). You want to create a mapping, or encoding scheme that captures a lot of the information about the event. In my experience the more information you can think of, the better.

You want to design your encoding scheme so that it is future-proof, and lets you run aggregate data analysis across multiple pages.

At ProductWiki we use a simple name-value pairing. We always maintain the same ordering across pages so that we can perform aggregate analysis. Furthermore it’s future-proof, because any new values we want to track we append to the end. which does not taint older URLs that have already been registered.

An example: http://www.productwiki.com/product-name/product-category/tab-reviews/

So now we can use regular expressions in GA to see how often people click the review tab, even though it’s javascript based. We can see it per product, and we can even segment per category.

When you combine that with all the other segmentation abilities that Google Analytics gives you there are some very powerful analysis that can be done.

Register Events

So, how do we register these custom URLs? Well let’s dive into the Javascript.

<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>

<script type="text/javascript">
var url='some really complicated custom url';
var pageTracker_simple = _gat._getTracker("projectid"); //explained below

var pageTracker_advanced = _gat._getTracker("projectid2"); //for advanced event tracking

pageTracker_simple._trackPageview();

pageTracker_advanced._trackPageview(url);
</script>

the key here is that when you call pageTracker._trackPageView() with no value it defaults to the current URL locatation, this is the default behavior. However, you can specify your own URL as a parameter, this is the key. You can also call _trackPageView() at any time, even long after the page is loaded.

So when a user clicks on a tab, or some other Javascript event you can also trigger a fake page-load to register that event.

The reason why we use two trackers is because unfortunately there is a bug in Google Analytics. When you do this kind of advanced page tracking some basic stats such as bounce rate get all messed up. That’s why we use a secondary GA project to handle basic statistics.

If you guys have your own tips and tricks feel free to shoot them on over.

Introducing the ProSCORE

In March we released a significant new update to the site introducing a brand new feature we’re calling the ProSCORE.

ps2-front-page

This feature augments our ProCon system giving you a quick 5-second view on the product’s quality. We analyze the list and people’s opinions of the product’s pros and cons to determine if people think the product overall is: good, bad or in the middle.

prometer

On the product report page you’ll see an expanded prometer with more information. On the left is the ProSCORE itself, with the number of reviews considered listed underneath. Beside the ProSCORE is the ProMETER bar which gives an idea of what the ProSCORE number actually means.

From 0-39 is Negative Opinion | 40-60 is Mixed | 61-100 is Positive Opinion.

On the very right we list the breakdowns of the individual reviews themselves so you can get a more detailed idea of what people think of the product.

Review Tab

You can get an even more detailed picture of people’s thoughts with the launch of the new Reviews tab.

This feature continues to augment the ProCon system letting you see each person’s individual opinion and which Pros and Cons they’ve agreed with. We also pull in extra information such as the comments they’ve posted about the product and how they’ve voted on the competitors. You now have a centralized view for each person’s opinion.

Helpfulness and Approved Reviewers

Underneath each review you may have noticed a simple question: “Did you find this review helpful? Yes/No”

While seemingly simple, answering this question is actually very powerful. How helpful people find a particular review let’s the software determine 3 things:

  1. How prominently we should feature the review. The more helpful, the more people that should see it
  2. Should the reviewer be approved or not?
  3. How prominently should we feature the reviewer? The more helpful, the more exposure the reviewer should get.

Being an approved reviewer means that your individual ProSCORE is counted in the product’s overall ProSCORE. People who are not approved, don’t have their scores counted. This is how the community can moderate the review scores and ensure that bias fanboys/trolls don’t muck up the counts for everyone else.

Top Reviewers

Also, for fun and to spur some competition we have a Top Reviewers leaderboard where we track and show-off the best reviewers on the site. The ranking is determined by the number of HELPFUL reviews you have substracted by the number of UNHELPFUL reviews.

HELPFUL – UNHELPFUL = Review Rank

Considering some people have been more active and been longer around than others we offer different leaderboards for fairness. The “All-Time” leaderboard is the most competitive, but that doesn’t mean you can’t rule the Monthly, or Yearly ranks.

Final Thoughts

This is a big update to the site and we really hope the community likes it. The goal of ProductWiki is to give people the essential information on products in a timly and concise manner that comes from the community. The ProSCORE really brings this out in a big way by giving you a lot of information in 5 seconds while still being controlled entirely by the community.

Let’s continue to redefine the standards.

Rebooting the blog

A long time ago ProductWiki used to have a blog. It was a really long time ago.

It actually got read.

It actually had some influence.

But the horrors and annoyances of Blogger’s setup made it so that blogging was an arduous task. As a result the Powers-that-Be stopped updating the blog. Over time the blog started languishing from neglect, until it was finally killed off.

However, all is not lost. We live in the era of versioning Webs, and in the sunset of the 2.0-nd phase a site Blog is as necessary as fading divs.

So here we are. Back and better than ever.

A lot of stuff has changed since that last blog update, so there’s a lot of stuff to catch up with.

And a lot of exciting stuff to come.