Redirects to external sites
-
Hi there,
I have listings that all link to external sites. In order to track how many times each link was clicked I coded a redirect script that simply redirects to the respective url.
www.mysite.com/go/123/ - redirects to another site
www.mysite.com/go/541/ - redirects to a different site
Is there anything I should or should not do from seo stand point such as blocking the /go directory in robots or adding a no-follow tag to links? I'd appreciate your advice. Thanks
-
Hi Vitaly,
1. The common way to track clicks is by using Google Analytics and event tracking. It's well documented by Google, and many websites use it:
https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
Basically, you add a bit of code to every link you want tracked, like so:
[Play](#)
And these clicks show up as events in your Google Analytics report.
2. Redirects like the type you describe are very often used with affiliate links. By redirecting through an internal url, you can not only track the link, but this gives you an opportunity to obfuscate the nature of the link from Google, something many affiliate marketers like to do. (Personally, I don't think Google gives a hoot if you link to affiliate sites, but that's a different story.
Typically, the redirect directory, often called "go" as in your example, is blocked by the robots.txt file.
User-agent: * Disallow: /go/
If the redirect passes through an actual web page, then there are other ways Google might crawl and index these pages, and they certainly don't help your rankings, so you'd want to additionally block them with a robots NOINDEX tag. (most of the time, the "go" directory is not an actual webpage, but a program file that performs the redirect without rendering a page, so this usually isn't necessary.
Personally, in most cases #1 is easier and more direct than #2, but which method you choose will depend on your individual goals.
Hope this helps. Best of luck with your SEO!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Tracking a Redirect
Recently a client of mine had a new site developed and had changed their domain, so the old URL is now redirecting to the new URL. They want to be able to track referral traffic in the analytics so we can decipher how much direct traffic is coming in from people typing in the old URL. Is this possible and if so, can I have a guide in doing so? Thanks!
Reporting & Analytics | | DigMS0 -
Differences in site search revenue in GA
I just put in a piece of software to replace a really bad built in site search engine on my 3dcart website. Now I am trying to measure the change, but I am having some issues. When I check the ecom data in the conversions section of GA with the built in segment Performed Site Search, I get promising results. Approximately 5% revenue increase over LY. But if we jump to behavior, site search, usage, and then check the visits with site search, I get a decrease by 4%. And the actual revenue is off, by like double (150k compared to 80k) Anyone have any idea why I am getting these results? The site search function is set up. Tracking is enabled, query parameter is keyword and search url is /search.asp?keyword=
Reporting & Analytics | | ShockoeCommerce0 -
Using Site Maps Correctly
Hello I'm looking to submit a sitemap for a post driven site with over 5000 pages. The site hasn't got a sitemap but it is indexed by google - will submitting a sitemap make a difference at this stage? Also, most free sitemap tools only go up to 5000 pages, and I'm thinking I would try a sitemap using a free version of the tool before I buy one - If my site is 5500 pages but I only submit a sitemap for 5000 (I have no control of which pages get included in the sitemap) would this have a negative effect for the pages that didn't get included? Thanks
Reporting & Analytics | | wearehappymedia0 -
UA Codes on Multiple Sites
Someone came in and set up Google Analytics code on one of our clients' sites before we got there and it is showing data from an outside website that the code is also on. Does anyone know the best way to find out what that other site is so we can remove this code from both sites? Thanks as always MOZ friends!
Reporting & Analytics | | ReunionMarketing0 -
What determines the page order of site:domain?
Whenever I use site:domain.com to check what's index, it's pretty much always in the same order. I gather from this, the order is not random. I'm also reasonably certainly it isn't related to any page strength signals or ranking results. So, does anyone know why the pages are displayed in the order they are? What information does the order of the pages tell me? Thanks, Ruben
Reporting & Analytics | | KempRugeLawGroup1 -
301 Redirect tracking
Hi All, I have a 301 redirect tracking issue. I have a domain, say www.123.co.uk and I have that domain 301 redirecting to www.abc.co.uk. Looking in analytics, I do not see any referral traffic sources for the redirect i.e. I do not see www.123.co.uk as a referral (and I know it does sent traffic). My question is - how can I implement a solution that will show referral traffic from www.123.co.uk to www.abc.co.uk as a referal in analytics? Hope that makes sense?
Reporting & Analytics | | Webrevolve0 -
No Query parameter for site search
Hi Guys, I have enable site search for analytics a number of times. But this time it's the first time I came across a search with no query parameters. example.com/search/item/searchterm What is the most simple way to approach this? thank you!
Reporting & Analytics | | GetApp0 -
How long after a redirect should we see results?
In mid September we had to so some redirects from old URL's to new URL's. We haven't seen a significant jump in traffic so we are wondering how long this might take before we see a change. We are the brand so we should be getting some sort of authority from Google, yes? Any tips that can be offered would be grateful as we are stumped.
Reporting & Analytics | | K2_Sports0