Can "window.location" javascript on homepage affect seo?
-
Hi!
I need to add a splashpage to my wordpress site. I use "window.location" javascript on the homepage to redirect on the splashpage (controlled by cookie to redirect only for the first access).
Can this technique affect the SEO on homepage?
Thanks in advance!
-
Hi There
I'm honestly not versatile in the intricacies of how window.location works - but I can tell you how to check if this is OK for search engines.
You can try a few things to see how Google "sees" the content;
- Do a fetch as Googlebot in Webmaster Tools
- Check the cache of the page if it has already been indexed (try text-only cache)
- Try running it through a header checker like URI Valet (set to Googlebot as user agent)
In all cases, you will get a "search engine view" of the page content. If it's what you want engines to see, then you are all set!
As far as the details of how to implement everything, I'd have to lean on a developer for that. But that's how you would check and verify it.
-
Ok, but in case i choose the PHP solution, i suppose that two different content (one for the splash and one for the default home) in the same homepage will make trouble: if the url are the same and the content is dynamically changing Search Engine Bots wont be able to crawl correctly
-
You really need a splash page, you know that it's really killing your bounce rate if you let users chose on the first entrance of your site? Besides that I wouldn't got for a JS solution to redirect users. Although Google is perfectly able to use JS these days I think a PHP solution is more effective.
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
-
Listing and Linking Brands from Homepage
We have the popular brands that we sell listed on our homepage. We currently have them in just plain text at the moment but we want to know if it would be best to: Leave them in plain text Link each to the most relevant page on our website Link each out to the actual brands website Link some to internal page, others out to brands website, some blank Not have a list of brands We do have a webpage that lists all of our brands but there are hundreds we carry so we narrowed down the 40 most popular known brands that people will be looking for on the homepage. Thanks for your help!
On-Page Optimization | | petsofoz0 -
Paying someone for SEO help?
Moz has been very helpful but since my site was hit by Google Panda and I am getting very little organic traffic, I am thinking about having someone who really knows SEO take a look and give me some help. However, I have no idea how to find someone reputable. Any advice for hiring someone for SEO help (on a budget?)
On-Page Optimization | | 2bloggers0 -
Footer and SEO
Hi All... We have a client who wants to really minimize and simply their website. They want to remove some of the footer info. Obviously we do not want to remove any contact or address but they would like to remove the footer menu system. I have read various things about it NOT effecting SEO and that it is there for user navigation and usability. Thoughts? Opinions? zach
On-Page Optimization | | Group20 -
Do Blog Comments On Your Site Help SEO?
There is a lot of debate as whether or not having comments on your blog is helpful from an SEO perspective. Proponents believe that more comments (1) creates more content, which search engines love, (2) creates more relevant keywords that can be searched, and (3) helps with "freshness" of the site/content leading to greater site authority. Others like Joost de Valk believe that comments can actually hurt SEO because keyword density cannot be controlled. He argues that his top SEO content are pages not posts for this very reason. What is your opinion?
On-Page Optimization | | marcperry0 -
Does Google pick up on words such as "in", "the", "and" etc?
If I have in my meta-title e.g Holidays Ireland, but i have in my description for grammer purposes Holidays in Ireland will google see these as 2 separate keywords and will SEOMoz grade me lower for doing this? Or is holidays Ireland included in Holidays in Ireland because google doesnt pick up on "in" ?? I would appreciate your help on this.
On-Page Optimization | | Louise990 -
Facebook Comments for SEO
Hi, I read few opinions over the potential value of implementing Facebook Comments on internal pages and I got that search engines don't crawl the content generated7written by Facebook Comments. So do you confirm that from a SEO prospective this is not valuable at all? Would you suggest to implement this for example within every product page like Yelp has? Imagine all the value of UGC lost and not read by search engine crawler... In which case would you suggest to implement FB Comments and why? Thanks a lot! Cheers, Nino
On-Page Optimization | | printi0 -
How many keywords / phrases can you SEO for?
Might sound like a bit of a daft question to you pro's but here it goes... I am been doing in house SEO for a company for a short while and since I have been managing it things have moved quickly in the right direction but I find myself limiting our SEO efforts to three key terms. Is this usual? The reason I am doing this is because I find that on page SEO is only really possible with those amount of terms (with regards to title, description, key word density, seo copy, on page links etc). I guess that what I trying to stay is: If I push on page opitimastion to more key terms will it be detrimantal to our current efforts? and Is SEO possible for additional key phrases which are not on page optimised?
On-Page Optimization | | RikkiD220 -
How to "rich-content" optimized!
Hi mozzers! How to optimize really a rich index.php of a page,with a keyword example: " mobile " what kind of things to include,video,comments,images,how many words,manually meta-descriptons or to leave it empty to take automatically the googlebot a snippet! Tell us more on this, because we forget sometimes the rich-content-optimized and only concentrated on the link-building. Thanks,
On-Page Optimization | | leadsprofi0