by Rob Newhouse
Analytics & Measurement Consultant
8 July 2010
As many will have heard, cool URLs don’t change, but in the course of the life-cycle of a typical website it invariably happens. And when it does, the only reasonable solution is to redirect users to the new location for content.
Best practice is to use a server-side 301 (permanent) redirect as this is the only reliable method that works for SEO – helping search engines update your URLs, but what happens if you use other methods? Does the same thing happen in all browsers?
This is particularly important for URLs that are entry points on your site, as without original referrer data, you cannot know the source of sales and conversions on your site. Anyway, on to the results.
Redirect method | Browser | Result | Impact on analytics |
Meta refresh – 0 | Firefox 3 | Blank referrer | Lost data |
IE8 | Blank referrer | Lost data | |
Opera 9 | Internal referrer | Lost data | |
Javascript:location.href | Firefox 3 | Internal referrer | Lost data |
IE8 | Blank referrer | Lost data | |
Opera 9 | Internal referrer | Lost data | |
Javascript:location.replace | Firefox 3 | Internal referrer | Lost data |
IE8 | Blank referrer | Lost data | |
Opera 9 | Internal referrer | Lost data | |
Server-side 301 | Firefox 3 | Original referrer | |
IE8 | Original referrer | ||
Opera 9 | Original referrer | ||
Server-side 302 | Firefox 3 | Original referrer | |
IE8 | Original referrer | ||
Opera 9 | Original referrer | ||
Server-side 301 – chained | Firefox 3 | Original referrer | |
IE8 | Original referrer | ||
Opera 9 | Original referrer | ||
Server-side 302 – chained | Firefox 3 | Original referrer | |
IE8 | Original referrer | ||
Opera 9 | Original referrer |
While there’s nothing too unexpected in the results, it’s clear that the only way to redirect visitors and have reliable web analytics data is to use a server-side redirect. No javascript or meta-based method works, in all cases resulting in an empty or internal referrer (which will misleadingly show up as bookmark/direct in most analytics packages). Interestingly, javascript and meta redirects can result in totally blank referrer data in some browsers.
Server-side methods worked across all major browser tested, and you can get away with chaining redirects together while still keeping the referrer data.
Get our news, insights & advice delivered to your inbox
Taking Your Facebook Campaigns to the Next Level: 3 Underrated Features Worth Testing Today
While many marketers are familiar with the basics of creating and running Facebook Ads, there are several underrated features within the platform that can take your advertising efforts to the next level. In this blog post, we'll explore three of these lesser-known gems within Facebook Ads that can help you maximise your campaign's effectiveness and return on investment (ROI).
In the ever-evolving landscape of digital advertising, staying ahead of the competition is essential for agencies aiming to maximise their returns for their clients. Google, being at the forefront of online advertising, continues to innovate its advertising platforms to provide marketers with tools that deliver exceptional results. In this article, we delve into three key features of Google Performance Max Campaigns that can supercharge your advertising efforts and propel your clients to new heights.
Top tips from the experts: How to write great iGaming content within regulations
Consumer safety and brand guidelines are at the top of our priorities, which is why, when writing casino content, there's more to it than simply putting pen to paper. It's more important than ever that we stay on top of the game. Find out how you can market gaming and make sure your content has the edge, whilst keeping in mind all the latest laws and requirements.
Call us on 01525 715 520 or complete the form below, and one of the team will get back to you.