Redirecting users based on location
-
My site is available in EN, DE, SW, SP, FR, IT, CH and JP.
However, the EN sites ranks much better than the other languages, and even when searching in another language the EN homepage is normally the result that appears.
Would it be worthwhile to automatically redirect users to the site in the same language they are searching in or country they are searching from? If so, how do I go about this?
Thanks!
-
Thanks for your response!
May I ask how you achieved this? I have a client that wants to show different content based on US State Location.Thanks
-
Hi Sara,
The GEO-IP redirect isn't an approach I favour.
As Google normally crawl from a US IP it can cause indexation problems.
As such I prefer something like cheapflights.com implement - if you visit cheapflights.com from a UK IP you are pushed to this international choice page - http://www.cheapflights.com/workers/profile-select.aspx?sref=CFUK&redirect=GeoIP&geoip=GB&cfref=CFUS&spt=Home&rp=/
This allows user to select the appropriate site (nicer for users) and allows both versions to be crawled.
My recommendation would be to implement something like that rather than a hard redirect to a specific language version.
I hope this helps,
Hannah
-
I haven't redirected users by country, but I am doing it by US state for certain services on a site.
-
When a user visits the page from a state we offer the service in, they are 302 redirected to the state specific page
-
When a crawler visits the page, they are NOT redirected anywhere
-
On that same page, we have links pointing to the state specific page so they can be discovered by the crawler
-
-
Hi SaraSEO,
I don't think redirecting visitors based upon country is wise because of the following reasons:
- The Search Engine crawlers are not neccissarily located in the country they crawl for and might not be able to crawl all languages.
- Redirecting Users but not Crawlers could be considerd cloaking
- There might be German speaking people in sweden getting very annoyed not being able to see the german version. - Google explicitly advises not to do this:
"Make sure each language version is easily discoverable
Keep the content for each language on separate URLs. Don’t use cookies to show translated versions of the page. Consider cross-linking each language version of a page. That way, a French user who lands on the German version of your page can get to the right language version with a single click.
Avoid automatic redirection based on the user’s perceived language. These redirections could prevent users (and search engines) from viewing all the versions of your site."
source: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=182192&topic=2370587&ctx=topic
Greets,
Sven
-
I think the only option would be to either have separate sites / urls or - redirect user to the relevant version of the site when they first land on your site, by checking their geo location. Now, if you're using one site and redirect, then I'm presuming you're still using the same urls - it's just the content that changes accordingly based on the location.
It looks like international versions of Google services are hosted in specific countries as their IP address changes - try for instance google.ru, google.pl etc. and you'll see using the SEOMoz toolbar that the IP is different, but I'm not quite sure if crawlers are only coming from the main server or not. Perhaps someone else could answer this.
You can do redirection using two methods : Javascript or Server side technology. Depending on what server technology you're using there are several classes / scripts available out there. Here's an example of one for PHP : http://www.geoplugin.com/webservices/php
The HTML5 has a built in Geolocation API, which you can read more and see some examples of here : http://merged.ca/iphone/html5-geolocation
With HTML5 Geolocation you will always be first asked if you want to allow the site to use your location - this is something you cannot get rid of.
I hope this helps a bit.
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
-
International SEO & redirects - do these solutions make sense?
I’m currently working on SEO for an international website with subdirectories set up for each international version. The site is has never had any SEO previously and is having a lot of indexing and visibility issues. Also geotargeting seems very off in search results. I’ve diagnosed various issues and want to check my assumptions and solutions below make sense... The root domain uses a 302 redirect to display content from the /en-GB page. (302 redirects seem to be a default language fallback setting configured in the CMS) and they’re used for most key pages. I’m concerned these redirects are contributing to a lot of the issues with incorrect indexing. The en-GB is the default language version of the site. So far, the en-GB has been set as the canonical version too. Both the root domain and this subdirectory URL display the same content. (en-US is also a near duplicate page). All other international homepages appear only on their subfolder URL. Various SEO tools have been showing redirect loops (caused by language changing parameter versions of URLs being crawled that don’t have redirects on them) and issues with hreflang and canonicals. I believe the hreflang tags and canonicals have been ignored due to relative URLs being used for each, as search results don’t always contain the desired versions of the URLs (in terms of regional version and preferred canonical versions). My questions are: Could these 302 redirects be conflicting with hreflang tags? If so, I’m thinking they should be removed (if not made 301s). GSC doesn’t like the fact these are on key pages, as redirected pages are listed in the sitemap. Will changing hreflang tags and canonical tags to absolute URLs possibly be enough to fix these issues from what you can tell? (Or will redirects need to go too?) Is the en-GB correctly set as the canonical when the root domain is also accessible, indexed and using this page’s content within the CMS too? (I feel like the root domain should be the canonical version, but not sure that works together with other language version subfolders or with a redirect in place from root to subfolder). As an extra point to the last question, GSC has recently chosen the root domain as the canonical (despite en-GB being set as user preference) and is now choosing to deindex some international versions of the homepage as a result. Hoping that getting the hreflang tags fixed and possibly redirects removed should correct this ASAP. But perhaps this also confirms en-GB should be the canonical and marked X-default too. I hope that all makes sense and sorry it’s a small collection of related questions. Really appreciate any replies.
International SEO | | MMcCalden0 -
Is it OK to change language by user IP?
Hello, I just read https://support.google.com/webmasters/answer/182192?hl=en#1 about multilingual website. Google says "Avoid automatic redirection based on the user’s perceived language". so Is it ok to redirect url by user IP instead of user language?
International SEO | | visaasancard0 -
Google Analytics - whats best way to set up to track users on geotargeted sub folders & tlds ?
Hi ive got a client site just about to launch into 2 new territories (German Germany & Turkish Turkey) The existing/main site is in English & targets English keyword usage globally via domain.com and is not geotargeted in anyway. Analytics is set up for this on domain.com and tracking accurately and GWT is set up too. Now we have added a Turkish language site via a subfolder (domain.com/tr/) & the German site (domsain.com/de/) BUT this German subfolder will be domain mapped to a TLD (domain.de) eventually.. So what's best way to configure/set up Google Analytics to track users so can view the international sub-sites as individual sites etc ? (& GWT for that matter) ? Also after doing this i will be setting up in Moz Anlytics as separate campaigns so how do you set up so only draws in the Analytics data specific to these sub-folders ? All Best Dan
International SEO | | Dan-Lawrence0 -
JavaScript IP-based redirection, best approach?
Hi everyone, What are the best practices for implementing Javascript redirections like on http://www.nike.com/ to send visitors to the right country section? I see it uses cookies and sessions to store the country and language, but what about search engines? Are they redirected via JS? Are there any risks that Google can't crawl everything? We had IP-based, server-side redirections on a few country-specific websites (purehazelwood.com, purnoisetier.fr, purnoisetier.com) that we had to remove because googlebot was always redirected to the US site and couldn't access the other sites. We instead added pop-ups if the visitor is accessing the "wrong" site but we'd like the redirection to be automatic. Is the javascript approach the best? Anything else we need to think about? Thanks for your time!
International SEO | | AxialDev0 -
International SEO Subfolders / user journey etc
Hi According to all the resources i can find on Moz and elsewhere re int seo, say in the context of having duplicate versions of US & UK site, its best to have subfolders i.e. domain.com/en-gb/ & domain.com/en-us/ however when it comes to the user journey and promoting web address seems a bit weird to say visit us at: domain.com/en-us/ !? And what happens if someone just enters in domain.com from the US or UK ? My client wants to use an IP sniffer but i've read thats bad practice and should employ above style country/language code instead, but i'm confused about both the user journey and experience in the case of multiple sub folders. Any advice much appreciated ? Cheers Dan
International SEO | | Dan-Lawrence0 -
Showing different content according to different geo-locations on same URL
We would like our website to show different content according to different Geo-locations (but in the same language). For example, if www.mywebsite.com is accessed from the US, it would show text (in English) appealing to North Americans, but, if accessed from Japan, it would show text (also in English) that appeals more to Japanese people. In the Middle East, we would like the website to show different images than those shown in the US and Asia. Our main concern is that we would like to keep the same URL. How will Google index these pages? Will it index the www.mywebsite.com (Japan version) in its Asia archives and the www.mywebsite.com (US version) in its North American archives? Will Google penalise us for showing different content across Geo-locations on the same URL? What if a URL is meant to show content only in Japan? Are there any other issues that we should be looking out for? Kindest Regards L.B.
International SEO | | seoec0 -
Delaying Redirection - Possible loss of Domain Authority?
Hey guys, I was hoping somebody might be help with my current dilema. We have a international website due to go live soon which has changed its brand name. The organisation whom we are working for want to leave the old site live for around 6 months after the new site goes live. The reason for keeping the site live is for users to be able to access many of the resources which will not be transferred over in time for when the new site goes live.The plan is to have a message on old site letting visitors know we have moved site. I'm concerned about this approach in terms of loosing some of the domain authority if the sites bounce rate starts increase due to people clicking over to the new site. Then in 6 months time when we finally redirect to the new site we might loose out on some of the domain authority. Is this something to be concerned about?The site currently has PR of 7 and Domain Authority score of 70.Cheers,Rob
International SEO | | daracreative0 -
Geotargeting two locations using root and /country
Hello, I am in the process of turning my UK targeted website into a global website in multiple languages. I will be using the new HREFLANG tag but I'm wondering about geotargeting. I've set this up in Webmaster Tools as: example.com = UK content
International SEO | | Seaward-Group
example.com/us = US content
example.com/de = German content
example.com/es = Spanish content
example.com/fr = French content
example.com/it = Italian content
example.com/nl = Dutch content Will the root UK content override the following sub directories that are set as a different location because its not /uk? Thank you.0