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
-
How can a page rank for keywords that it does not have on it?
I have a client that is ranking in the top 10 for several keywords on their homepage. Their site has no purposeful SEO in it, there is barely any text on the homepage at all and none of the text are the keywords it is ranking for.
On-Page Optimization | | woodchuckarts2 -
Change SEO focus from homepage to other page on the domain
Hi, we are (were) ranking top 5 with gietvloer-wand.nl by focussing the homepage for a certain keyword. We're trying to change to focus from the homepage to /gietvloeren with more content / information. How to go about this? how to tell Google that /gietvloeren is more relevant / important then than the homepage? Or any experiences how long it will take for Google to see that the page has more information than the homepage? It's a test and any experiences you can share would be great. Thanks!
On-Page Optimization | | Heers0 -
Need I add rel="dofollow" or not?
Hello, My website is http://www.vietnamvisacorp.com is using the href links without meta tag rel="dofollow" such as I am using . Should I put ref="dofollow" in this: Thank you!
On-Page Optimization | | JohnHuynh0 -
SEO and PDFs
Hi there, how could I incorpore the PDF's documents of my site to the SEO strategy in order to optimize the page in which is included in? Thanks
On-Page Optimization | | juanmiguelcr0 -
Are sliding text SEO friendly?
Hi mozzers, I am wondering if sliding text SEO friendly such as this webpage: http://www.questexchange.org/?s=faq If it isn't is there a way to make it SEO Friendly? Thank you!
On-Page Optimization | | Ideas-Money-Art1 -
[HTML Gurus] Is the only nofollow = rel="nofollow"?
From my knowledge only way an HTML link is nofollow is using rel="nofollow". I was wondering if you have a link , is there anything you can put OTHER than rel="nofollow" within the <a></a>tags that make a link nofollow?
On-Page Optimization | | William.Lau0 -
How to organize a Knowledge Center for best SEO?
Hi, My Client is facing pushback from her company on separating assets into different pages (webinars, press releases, by-lines, etc) vs lumping them all together in one page. We need to define the SEO benefits of doing this in an organized fashion vs one big lump. Can you help? Thanks,
On-Page Optimization | | ScratchMM0 -
SEO Plugins for WordPress
Hi, Mozzers- I'm re-evaluating my SEO WordPress Plugins. What are your favorites and why? Are there others that you avoid and why? Thanks!
On-Page Optimization | | lhc672