Customize your Traffic Sources using Google's URL Builder tool

google analytics logoI first read about the Google URL Builder on Didier's blog (in French) and decided to write an English article about this very useful tool. If you are monitoring your blog or website’s traffic on Google Analytics (GA), then this article might be of great help!

For obvious reasons, one important part of web analytics is the study of your traffic sources. For those who are not familiar with the terms, here’s a quick definition of the different types of traffic you will come across:

  • Direct traffic = Users coming on your website by entering your website’s URL directly in their browser, using saved bookmarks, etc.
  • Organic traffic = Users clicking on organic (=natural) results in the search engines.
  • Referral traffic = Users on another website clicking on a link to yours.
  • Paid traffic = Users clicking on paid ads if you are running a PPC campaign (mostly via Google Adwords).

However, GA sometimes makes it a bit confusing for the following reasons.
If you are running an emailing campaign or send out a newsletter containing a link to your website, the person who clicks on that link via a webmail client such as Windows Live Mail or Gmail will show as referral traffic coming from another website. But if someone else clicks on the same link of the same newsletter via a mail client such as Outlook, Lotus Notes or Thunderbird, then the traffic will be considered as Direct Traffic. Therefore it is quite difficult to know how many people in total have come through this newsletter.

google analytics traffic sourcesThis issue can be identified in many cases. For example, if you share a link in one of your Twitter messages, people clicking on that link via the website will be shown as referral as if people click on that same link via third party Twitter applications such as Seesmic Desktop, Twitterfox or TweetDeck, then this traffic will be considered as direct traffic.

To make it a bit simpler, I’ve tried different techniques in the past. For example, I have used URL shorteners such as that convert your link and offer basic analytics such as the number of clicks. If I want to share a link on both Twitter and email, you can for example include the link in one but use in the other (both redirect to the same page). You can therefore have a precise idea of how many clicks each link aggregated.

However, you are using Google Analytics and might as well take advantage of its full power!

This is why I will show you how to setup a link using Google’s URL Builder. You can find it in the GA Help Center.

This tool lets you append parameters at the end of your destination URL such as the support you are using (Twitter, Facebook, Email,…) or the campaign you are running (Christmas promotion, Father’s Day,…).

Let’s see how this works.
google url builder tool
Above is a screenshot of the URL Builder tool. In order to properly generate a URL, you will need to enter some basic information in the blank fields as follow:
  • Website URL: This is the URL of the destination page you want to share (I have entered the URL of a previous article I have written on my blog for example).
  • Campaign Source: Enter the source on which you will be posting your link. For example, I will share this link on Twitter and therefore included the Twitter parameter. If you want to share it on facebook, then enter facebook instead of Twitter… as simple as that!
  • Campaign Medium: In this field you will enter the medium you will be using to share the link. This can be a good way to later sort your traffic in GA. If you select social, all your links shared on social networks will be selected.
  • Campaign Term: Optional. I haven’t used this parameter before but this would let you keep track of which keyword a particular ad is working with if you are using Paid Search.
  • Campaign Content: Optional. This is not compulsory but just like the above parameter, it can be useful in PPC or display campaigns in order to identify which ad has been used.
  • Campaign Name: This is an extra parameter that lets you identify even more precisely what this link is. For example, I have entered “Article-Multitab Browsing” to make it easier for me to recognize it. Of course, you can name it the way you want (product name for example).

Once the required fields are filled, simply click on the Generate URL button and you will get a brand new one containing the parameters explained above. In my case, I end up with the URL:

Note that once you are more familiar to the way these parameters work, you can easily build them yourself without using the Google URL Builder tool. Just be careful not to break the syntax.

This may seem a bit too technical at first but it is quite simple in the end. A lot of people and companies have already been using this in order to track precisely their links.
Next time you receive an email from Twitter telling you someone is following you, have a look at the link inside the email:

If you get promotional emails, you will also see that most of them use this method:

I hope that little tutorial helped you. Don’t hesitate to comment!

PS: I have also noticed that traffic coming from Google images is listed as referral although it is organic in my opinion. However, there is nothing we can do about this one!

Translate page

Rate this article

Liked my post? Share it!

Bookmark and Share

3 great comments!:

Brieuc said...

Thanks for this.

merlie said...

Hi! This template is simply super....

Website Template said...

Useful information shared..I am very pleased to study this article..Many thanks for giving us nice information. PSD To HTML

Post a Comment