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!
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
-
301 redirection problem - Major lose of ranking in Google Search results
301 redirection problem - Major lose of ranking in Google Search results
International SEO | | AviramAdar
(site was almost completely removed from google search results) Hello,
I had a website ('DayUse' style) with the following url:
https://www.roomsindex.co.il/ Couple of days ago, I've made a 301 redirection to:
https://www.hour.co.il/ The redirection was made on 2 levels:
1. Server side- on htaccess file.
2. Google Search Console - Change of address page. Bare in mind the following things: The site's structure (url addresses) & the code hasn't changed (for sure). Both redirections are 100% valid (for sure). All the website pages were indexed (for sure). There isn't a penalty on any of the above domains (for sure). The website was almost completely removed from Google search results. For example: Before the redirection the website was ranked 10 in my main keyword "Rooms by hour" (translation from Hebrew), now the website removed. Also, the website removed from almost all the search terms it was ranked before. My question is, off course, WHY???
By the details on the following page, a proper 301 redirection shouldn't cause to such page ranking loss (As I mentioned- It almost completely disappeared)... https://support.google.com/webmasters/answer/6033049?utm_source=wnc_807001&utm_medium=gamma&utm_campaign=wnc_807001&utm_content=msg_914100&hl=en-IL search-console-change-of-address.png0 -
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 -
IP Address Geolocation SEO - Multiple A records, implications?
Hi, We operate an ecom site, with a .com TLD. The IP address of the hosting is based in France and indeed we seem to see quite a lot of traffic from France. How relevant is the A record of the domain for SEO? Is it still an important signal to help Google geolocate? And, if that is the case, is there a case for having multiple A records for the domain? Like an IP Address in France, an IP address in Italy, etc... that way the domain would have multiple A records... Thank you
International SEO | | bjs20100 -
Sudden drop in rankings after 301 redirect
We recently merged our old webshops to one big webshop. The new webshop is mutlidomain/multilanguage so the English version is at the .com extension and the germand version at the .de extension etc. etc. We redirected the 2 best old webshops to the .com extention with a htaccess 301 redirect. The other old webshops we divided over the other extensions. We redirected the 200 most importent pages with a page to page redirect and redirected the other indexed pages to the new index page. (300K) Everything went well and the new website started indexing. All extentions are doing well and even the .com version had very good rankings for a few days. After a few days we almost lost all rankings to the .com version. We did always clean seo, had 100% unique content written by our own writers and translated by our own translators. Our old webshops have very good branche related backlinks and i can`t find anything else then the 300K redirects to the homepage that might be the problem. Hope somebody will help us, or know someone we can hire to check our webmaster account, and check everything we did.
International SEO | | snorkel0 -
Best domain for spanish language site targeting ALL spanish territories?
hi, we're have a strong .com domain and are looking to launch a site for spanish speakers (ie latin america + spain). we already have various subdirectories for some foreign language sites (eg. ourdomain.co.uk, us.ourdomain.com, ca.ourdomain.com, ourdomainchina.com, ourdomainindia.com etc) we already have a B2B site ourdomain.com-es which will remain the same. I'm thinking best practice would be to launch translated copy for the following: ourdomain.com/es ourdomain.com/cl ourdomain.com/mx ourdomain.com/pt etc etc firstly is this the best option? secondly, i'm really interested to hear whether there is a less time/resource intensive route that would give us visibility in ALL spanish speaking territories? Also - if we go with just one of the above (eg ourdomain.com/cl) how likely are we to get traction in other spanish speaking territories? any help much appreciated!
International SEO | | KevinDunne0 -
Does 301 redirect on homepage impact seo strongness of this page
Hi, we are running a multilingual website with this structure : http://www.website.com/en
International SEO | | Samuraiz
http://www.website.com/fr
http://www.website.com/de
http://www.website.com/lang (etc.) with then all onsite URLs this way:
http://www.website.com/en/hello
http://www.website.com/fr/bonjour
http://www.website.com/it/ciao We have a 301 redirect on http://www.website.com going to http://www.website.com/en - except if a user already went on the website and chose a specific language. My question is : Do you think the english homepage will have more seo power if it goes directly to http://www.website.com/ I wonder if we lose some linkjuice with the 301 redirection, as many backlink goes directly to http://www.website.com1 -
Can anyone guide me best ways to generate customer leads through the SEO Process
I want to generate leads for my client through SEO process. I have involved all kind of link baits like articles, blogs, infographics, directory submissions etc.,Basically the client is B2B service provider like payroll services, Labor compliance and Staffing Solutions to various segments
International SEO | | Virrtuo0 -
What's the best strategy for checking international rankings?
Hi There- I am looking to optimize sites serving the UK and Austrailia markets. I feel like I have a good handle on how to go about doing that, but what I am fuzzy on is, what's the best way to monitor the SERPs for the keywords I am targeting. I know based on experience that if I just search google.com.au from here in the states, my results will be 'americanized' and may/probably won't accurately reflect what someone would see if they were search from Austrailia. Are there any good tools or tactics for seeing what searchers in the countries I am focusing on woudl see? Thanks! Jason
International SEO | | phantom0