Google Analytics API — Analytics Canvas

By: Analytics Canvas  09-12-2011

Usually these step changes are subtle- in certain cases, depending on your traffic and situation they could be earth shifting. While these changes can sometimes be frustrating, there is no simple solution- and they are often the price to be paid for continuous improvement, and best accuracy.

The next time you see a step change in your data, it doesn’t hurt to consider the possibility that your traffic hasn’t changed, but the way that Google Analytics is reporting it has.

Here are some recent examples:

History is the old definition, the future is the new

Example: Session definition

Before Aug 11 2011

A session ended when :

  • More than 30 minutes have elapsed between pageviews for a single visitor.
  • At the end of a day.
  • When a visitor closes their browser.

After Aug 11 2011

A session ends when:

  • More than 30 minutes have elapsed between pageviews for a single visitor.
  • At the end of a day.
  • When any traffic source value for the user changes. Traffic source information includes: utm_source, utm_medium, utm_term, utm_content, utm_id, utm_campaign, and gclid.

What it means to you and your analysis

You are going to see more visits in cases when visitors leave and return to your site in a short period of time. Because there are more visits this is going to affect many metrics- bounce, pageviews per visit etc. etc.

Example: Image search

Before July 22 2011

Image search from is referal traffic with a referal path of “imgres”.

After July 22 2011

Image search is included in search traffic. (Which makes sense).

What it means to you and your analysis

If you have significant search from, and if that traffic is different than your existing search traffic, all your metrics could have a step change for the search category.

Changing categories within a dimension

Example: Changes to how city is recorded

Before Feb 24 2011

All traffic within a certain rectangle was defined as “London” in Google analytics.

After Feb 24 2011

A number of smaller, more detailed areas within the original rectangle were given their own city name.

What it means to you and your analysis

Discontinuing metrics, including removal of history.

Example: Connection Speed

Before Feb 24 2011

Connection speed was recorded for each visit.

After Feb 24 2011

Connection speed is being eliminated- new functionality around page load time has been added, requiring additional code, but providing much better, meaningful information.

What it means to you and your Analysis

After the depreciation date, no data is collected (the interface puts all visits under “unknown”). This metric does not exist in the new GA interface, and will return an error if an attempt to query it in the API is made even for historical periods. If you need this data for any reason, you need to export it out of the old GA web interface now, or it will be soon unavailable.

The bottom line is that in many cases the changes are all for the better, and while historical analysis is important, we know that the future is the key, and looking too much in the rearview mirror isn’t good analysis- the benefit of better and more accurate metrics are worth the temporary challenges in comparing recent historical data.

If you do need to compare apples to apples for annual or quarterly reporting for example, then you can use the Google Analytics API to pull the more detailed data out, and adjust for any troublesome changes based on the the date of the change.

And in terms of eliminated data, you need to be aware of the upcoming changes, and if needed pull the data out of Google Analytics while it is still available, and store it in your own database.

So next time you see a sudden step change, maybe something has changed in the real world, and you are seeing visitor behaviour… or maybe the definition of what you are analyzing has changed.

For notifications from Google for the Google Analytics API, this group has been setup:

Other products and services from Analytics Canvas


Google Analytics Premium — Analytics Canvas

The service guarantees in the form of SLAs, the more formalised arrangements with certified partners for support, attribution analytics, but perhaps most importantly, more data and less sampling. Google Analytics, for a very long time, as been a remarkably powerful tool, particularly for its price. Google Analytics premium offers a number of key advantages.


Automation — Analytics Canvas

ETL is a key process in the business intelligence and data warehousing arena- it’s all about automating data movement and building repeatable, robust processes that take raw data, clean it, fix it, enrich it, and then load it into a location where it can be easily queried and analyzed.


Analytics Canvas Tool — Analytics Canvas

In a more sophisticated scenario, you can cross reference each page to a given member of a product hierarchy, so that pages that are overviews, or dealing with an entire product group, are accurately mapped. The higher end editions will be capable of pulling hundreds of thousands of rows of data from multiple accounts and profiles, as well as data from multiple databases and files.


Keyword Analysis — Analytics Canvas

Because you can pull huge amounts of data from Google Analytics easily, you can include ALL your keywords, and calculate segmentation across the enter data set, with a day by day breakdown, if you like. There are lots of keyword tools available to help you pick which keywords to target, and who is searching for what, but what is actually happening on your site- which keywords are converting.


Analytics Canvas Tool — Analytics Canvas - analytics canvas tool

In Analytics Canvas you go to the “Add data” toolbar menu, then select Google Analytics, and pick which of the profiles you want to do the analysis on. For some reason, when google sends image search visits, they get marked as referrals, not organic- and the referral path is set to “/imgres”. What we want to do is organize this data into more meaninful groups by defining the rules for that segmentation block.