Tracking On-Site Campaigns with Google Analytics: The pros and cons of Internal URL Referral Parameters

Part 3: The pros and cons of Internal URL Referral Parameters by Lukas Oldenburg

 

Facebook used to have them, Amazon still has them: parameters in the URL that show through which on-site campaign link the visitor has reached the current page. But unless you really have a thoroughly thought-through system in place, you should think twice about using them.

Internal Referral Parameters are not Campaign Parameters

First of all, let me clarify what I mean by “Internal Referral Parameters” (IRPs): Those are not to be confused with (external) Campaign Parameters (for Google Analytics, read “utm_campaign” and the like). As stated in the first article of this series, you should never use Campaign Parameters in the links of your on-site campaign because they will override the external source of the visitor. 

To give you an example for an IRP: If you visit Amazon.com’s homepage and click on “Books” in the left-hand navigation, you get to a page with the URL:

http://www.amazon.com/books-used-books-textbooks/b/ref=sa_menu_bo8?ie=UTF8&node=283155

See the “ref=sa_menu_bo8”? That is the IRP. It helps Amazon.com determine which links (=on-site campaigns) on its homepage, category pages, and so on are the most effective.

Another website that uses IRPs is YouTube. There, you often encounter URLs like

http://www.youtube.com/watch?v=xxxxxxxx&feature=related

Here, the “feature” parameter is telling YouTube which link you used to get to the current video (in that case, I clicked on a “related video” on the right-hand side.

We stopped using them, and so did Facebook
My company used internal referral parameters for some months, but we stopped using them for the reasons I will explain below. So has Facebook, which had used them extensively until a couple of months ago. They now seem to have dropped almost all URL parameters. Apart from the challenges those can cause for web analysts, they had other negative side effects: It was not easy, for example, to get a clean or “canonical” URL of your profile or fanpage because there always was “parameter clutter” attached to it, and every page existed in the form of countless URLs. You’d even see websites linking to the “wrong” (non-canonical) version of their fanpage. 

Pros of Internal Referral Parameters

1. Easy to see in the most basic reports which on-site campaigns contributed how much.
In many cases, Internal Referral Parameters (IRPs) make reporting a lot easier. For example, if you are analyzing the performance of your article on Spanish Fuet sausage in the standard content report, you can see at once which on-site campaign produced how many Pageviews:

  Page Unique Pageviews
1. /fuet-article?ref=large_homepage_teaser 230
2. /fuet-article?ref=small_homepage_teaser 130
3. /fuet-article?ref=related_articles_box 80
4. /fuet-article?ref=category_overview 50

An easy-to-read view that neither the methods based on Event Tracking nor on In-Page Analytics can provide.

2. You can combine those reports with goals and conversion analysis.
Create a Custom Report, and you can get an insightful overview with Unique Pageviews (or Visits), Goal Conversions and the Conversion Rate. That way you can see in a simple report which internal campaign drove most of the conversions:

  Page Unique Pageviews Conversions Conversion Rate
1. /fuet-article?ref=large_homepage_teaser 230 5 2,17%
2. /fuet-myarticle?ref=small_homepage_teaser 130 10 7,69%
3. /fuet-myarticle?ref=related_articles_box 80 6 7,50%
4. /fuet-myarticle?ref=category_overview 50 2 0,04%

Those kinds of reports are easily understood by anyone and don’t require advanced segments or other more sophisticated methods. That is why a lot of people at my company weren’t too happy at first when we decided to abandon IRPs.

3. Data is more easily available for other analysis tools.
While your Event Tracking Data rests inside of Google Analytics and needs to be exported first, your URL parameters are readily available for any other analysis tool that is able to extract the URL data (from your server logs for example).

4. “Right click and open in new tab” and other JavaScript problems are not an issue.
If you are using Event Tracking for on-site campaigns, you won’t be able to track the clicks on a link when people right-click on it to open it in a new tab. Not a problem with IRPs, because your referral information is transmitted via the URL and not via a JavaScript event. That is why, with IRPs, you also don’t have to worry about any other JavaScript-related problems (like when the user clicks so fast from page to page that your tracking code hasn’t loaded yet). You also don’t need additional JavaScript that may slow down your page (like with Event Tracking).

Cons of Internal Referral Parameters

1. SEO issues
If you use Internal Referral Parameters, you are creating countless URLs for the very same page. That makes it harder for your visitors to read your URLs, and search engine bots and other crawlers have a tougher time to find out which is the “real” or “canonical” URL of the current page. Search engines might even assume you are producing “duplicate content” (several URLs for one piece of content) and drop you in their rankings. So if you want to use IRPs, you should at least ensure the following:

2. Cluttered reports
Even though they are really nice for a quick content analysis, IRPs can cause trouble in other reports: For instance, imagine you want to analyze your content category “sausages” and you have five articles on sausages in that category. Since all the URLs contain “/sausage”, you’d usually filter by “/sausage” to get a list of all those article URLS. But if you use IRPs, you don’t get five URLS, you get dozens, one for every different on-site campaign link to that page (plus all the broken links that also tend to increase the longer your URLs are). Thus, in order to get a better picture of which sausage is your main performer, you first need to add up the Pageviews of each one.
Ok, that seems doable so far. But it really gets messy when you want to take it one step further: Say you want to analyze which external sources caused how many views of which sausage article. With Google Analytics’ Pivot Tables, this is usually a very insightful two-click adventure. You get the Pageviews (in this example, Unique Pageviews and Bounce Rate) for each source in the columns, and the pages (URLs) in the rows:

Now, imagine this report if you had several versions of each URL. You need to add up not only the total
Pageviews and Bounce Rates, you will have to do that for each source. No fun! So if you are using referral parameters, make sure to set up a second Analytics profile with a filter that weeds out the IRPs.

3. More up-front coding and conceptual work needed
Marketing campaigns need recognizable names, and so do on-site campaigns.

In a basic on-site campaign tracking model, the campaign name is just the path of the page where you clicked on an on-site campaign link. So all on-site campaign links on your category homepage for sausages (mydomain.com/sausages) would get the campaign name “/sausages”. The URL parameter thus would look like this: “?onsiteRef=/sausages”.

For more refined on-site campaign tracking like the one Amazon uses, each on-site campaign link needs its own name, and you constantly have to check if all the links have the right parameters attached. Doable, but requires a lot more conceptual and coding work up-front.

4. Shared URLs may lead to misleading results
Imagine someone gets to your Fuet Sausage article via your on-site campaign banner with the dancing sausage and shares that URL with his 3.248 Facebook Friends and on his Facebook Fanpage for Sausage Lovers. Tons of visitors pour in. You may now look at your report and misleadingly attribute the success to that wonderful dancing sausage campaign, because that’s the IRP you’re seeing in your report.

You can alleviate this issue by making sure the share icons on your site (like the Facebook “like button”) always convey the canonical URL (URL without parameters), but it is hard to entirely prevent the sharing of non-canonical URLs because people still do copy and paste URLs (isn’t that crazy? ;) ). Then again, the same thing can happen with external campaign parameters.

Conclusion
Internal Referral Parameters have some tremendous upsides: They provide more insightful content reports (at first glance), you can easily link the clicks on your on-site campaign links with your website goals (conversions), and you are relying less on JavaScript. But if you do want to use them, prepare your website well to extenuate the graver SEO and reporting issues.

Lukas Oldenburg is a featured blogger for Web Analytics World, you can read his latest articles here

Image of play button which starts the video clipIntroduction to Google Analytics

Image of play button which starts the video clipThe Pros and Cons of In-Page Analytics

Image of play button which starts the video clipThe Pros and Cons of Event Tracking

Image of play icon with red border showing which video you are viewingThe Pros and Cons of Internal URL Referral Parameters

Image of play button which starts the video clipOnline Competitor Analysis