February 27, 2014

How to Track Google Analytics Demographics When Using Universal Analytics

If you’ve been tracking your website’s analytics using Google’s Universal Analytics code, you may have noticed that you’re unable to track user demographics. Fortunately, with a few adjustments, we can set up Google Analytics to track user demographics while still reaping the benefits of using the Universal Analytics code.

First, if you haven’t been tracking user demographics on your site in the past, let’s take a look at some of the data that is collected once you have activated the demographics code. Age, gender and interests are tracked once you’ve activated the demographics code. The benefit of knowing not only how many visitors are coming to your website, but who those website visitors are can be very beneficial. You can also access this data in custom reports and segmentation, allowing you to view how behaviour changes between the various types of visitors to your website. For example, do females under 30 years old interested in fashion convert more frequently than males under 30 years old who are interested in technology. Knowing this information gives you an edge that you didn’t have before.

Google Analytics Demographics Examples

Gaining access to demographic statistics is fairly straight forward. If you’re currently using the Universal analytics code, you’ll need to create a new analytics property using the Classic Analytics code. I’d recommend naming the property to indicate that is tracking demographics, as to not confuse the new property with the original property. Be sure to enable “Turn on Advertiser Support” when creating the property.

The newly generated classic analytics code should like like this:

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXXXXX-7']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

Copy and paste the code underneath the existing Universal Analytics code on your website. Your exiting Universal Analytics code should be found in the < head > or < footer > of your site.

If you’re unsure, look for the code similar to this:

      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

      ga('create', 'UA-XXXXXXXX-6', 'your-site.com');
      ga('send', 'pageview');

Once you’ve added both codes to your website, you may need to visit the “Demographics” tab from within the newly created analytics property and verify that the code has been added correctly. You should begin to see data shortly thereafter, usually within 24 hours. Hopefully you can use the newly gathered data to your benefit. If you have any questions about setting up Universal and Classic analytics to run simultaneously on your website, please leave your questions in the comments box below.

Filed under:  Analytics & Diagnostics Tutorials

Dylan Dunlop

When he isn’t honing in on his coding skills, Dylan’s either mastering various styles of guitar playing or bird watching.
Leave a comment
comments powered by Disqus

Base Terminology

SEO is the process of affecting the visibility of a website or a web page in a search engine's un-paid ("organic") search results.
The semantic web refers to the next stage of the world wide web and aims to ascribe semantic meaning to all web content through a collection of systems of classification. This means that, in the future, machines will be able to better understand the content we produce, resulting in better search results, new applications and an Internet that is fundamentally different from the one we use today!
What if each of the objects around you had a unique identifier that can be connected to the Internet? The goal of the Internet of things is to equip all objects in the world with tags that allow them to be digitally organized or manipulated. The implications? Less theft, less waste and the ability to control your surroundings in a manner never before possible.
Conversion optimization is the practice of modifying the parameters of a lead-generating system to stimulate a higher success rate as defined by goals. Most conversion optimization is structured to create an increase in ROI (return on investment). We frequently use multivariate and A/B split testing when optimizing conversion, wherein we test two or more systems at the same time, analyze their performance and deduce precisely what action items will bring us closest to the set goals in the least amount of time.
Market diagnostics or analytics is the process of collecting and analyzing business data — especially consumer data. This allows us to assess and improve the effectiveness of a marketing campaign.
In many applications today, there is such a phenomenal quantity of data available that it's difficult to collect and process with traditional database tools. The field of collecting, manipulating and drawing conclusions from massive quantities of data from a particular source is known as big data.
What started as a CMS (content management system) that was only meant to create and edit blog content has grown at a tremendous rate to become the most ubiquitous system for developing websites on the internet. WordPress accounts for an incredible 15% of all sites on the web.

RT @PicardTips: Picard engineering tip: Use the metric system.

2 months ago

RT @PicardTips: Picard management tip: Suppress your inner alarm. Be the calmest person in the room.

1 year ago

RT @dakami: i'm not saying everything you need to know about hacking, machine learning, and hacking machine learning is in this photo https…

1 year ago

Request Our Portfolio

  1. Which option best describes you? *

  2. Are you a key decision maker in the business you represent? *