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
-
Does subdomain (or sub sub domain) affect analytics data of root site?
We self-host our public website, but over time have also added subdomains onto it that are not public and are for internal or even client portals. I am seeking advice as to whether those subdomains affect the analytics data (self referrals, visits, bounces) of the public site that I am tasked with analyzing. I feel that it does skew the data but need to build a solid case to move the public website to a new domain, so as to leave the existing one in tact with all of its subs.
Reporting & Analytics | | MarketingGroup0 -
Ecommerce site product link. How to handle a link that doesn't exist.
Suppose we have this product A, and we just have a single item for this. When the item is sold out we do not want to show it on the website saying "out of stock". Instead we would like to remove the product from out store which will now result in a url that doesn't exist. And google webmaster tool and Moz analytic will show them as page not found after they crawl over the site. Should i be generating a new sitemap.xml and update ? How do i handle those pages that don't exist anymore ? Thanks
Reporting & Analytics | | MindlessWizard0 -
Site account in Google Analytics
Hello I have a question about my site account. On 2014, during a week, my ID tracking of Google Analytics was removed of the site, in this period the volume of users and sessions is lower than the other weeks. But I don't understand why are the sessions and users still reporting during this period without ID Tracking
Reporting & Analytics | | Arkix0 -
What are the consequences of doing a 301 redirect?
Just recently we did a redirection from a website that is ranking very well. The redirection was done through redirecting the page of the website A to the related page of website B. Website B raked massive traffic in the first week and have increased its ranking among Google searches but recently the traffic seems to decline. Website A which was ranking very well before redirection is now nowhere to be found on Google search. Is this a consequence of doing redirection? Please help.
Reporting & Analytics | | ISMEPTYLTD-SEOMOZ0 -
Local site rankings have dropped off first page but Universal went up.
My site was performing first page locally on 6 of 20 keywords, and universally on 3 of 20 keywords. We started a link building campaign and optimization about 3 weeks ago. When I looked at the rankings today I was happy to see that 16 of 20 keywords were in the top 20 rankings universally, but not happy to see that only 1 of the 25 words were ranking locally now. I lost my local ranking on 5 very important keywords. I realize that you can not rank first page for both local and organic but its as if I traded my first page local ranking for a universal ranking that appears lower on the page. Maybe someone could point me in the right direction.
Reporting & Analytics | | whmgatx0 -
Difference between site: search and Total Indexed in Google Webmaster Tools.
This morning I did a search on Google for my site using the site: operator. I noticed that the number of results returned was significantly different than the "Total indexed" in Google Webmaster Tools. What is the difference and is it normal to have two very different numbers here?
Reporting & Analytics | | Gordian0 -
What extra shall we do to increase organic traffic for both the sites?
One of my clients has english language websites targeted for USA and UK audience with some content variations but60%-70% of the content on site remains the same. The site is hosted in USA. One is hosted on brandname.co.uk and one is on brandname.com. The precuations that we have already taken to save it from being marked duplicates are: 1. used rel=alternate element for all product detail pages2. currency in both the sites are different that is GBP and USD3. have tried to differenttate the product by using different product specific terms like Publishing Year: vis a vis published in:Author Vis a vis Written byFormat vis a vis binding type Add to cart vis a vis add to basket and so on What remains the same: 1. Title structure 2. Description 3. Product Name 4. About the product text
Reporting & Analytics | | CyrilWilson0 -
OSE shows URLs redirecting to our custom created error page, is this a problem?.
When I check the link metrics for my product pages in OSE, it shows a message saying that the page redirects to our custom error page. This page was recently created to display when there is an error with the website. Do I need to be concerned that OSE is seeing all product pages as redirecting to this error page? Will it affect page authority etc,? I have attached a screen shot of the message that OSE displays for reference. YWbpM.jpg
Reporting & Analytics | | pugh0