Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
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
-
Seeking SEO contractor
I would like to hire an SEO contractor to assist with some technical/SEO issues on our site (Schema, etc). Can anyone make a recommendation? I am looking to work with a small company. Thank you in advance for any referrals!
On-Page Optimization | | JulieALS1 -
Can I replace categories with a static page
Hello there. I want to replace all of WordPress categories with static pages so that users see a well designed and constructed presentation of all the articles within each topic instead of just a long list of excerpts. I've already done this with 2 categories and although it is hard work I can't help feeling it is a much better thing for my users. However, I'm concerned that I am embarking on this project without being totally sure that it makes sense from an Seo point of view, or whether there are any downsides I haven't thought of? My idea is that the WordPress categories are set to noindex and nofollow. Search engines should find all of my static category pages and all of the content within each category will be spidered from there instead. Just to be sure you know what I mean here is a link to a normal category - https://www.whitegoodshelp.co.uk/category/consumer/ and here is my static page replacement for it - https://www.whitegoodshelp.co.uk/consumer-rights-appliances/ Both pages contain links to all articles within the category except the one generated by WordPress is just a long paginated list, and my replacement is a proper category page, which is hopefully far more useful . Can someone please confirm that there are no downsides to this strategy? 🙂
On-Page Optimization | | Snowdune1 -
Product Descriptions (SEO)
So I would like a few opinions. How long should a product description be? Enough to get the point across? 100 words? 800 words? Over detailed? Any advice would be appreciated.
On-Page Optimization | | mattl990 -
How much text is recommended for a homepage?
I'm working with a client who is redesigning their site and the new design is very image heavy. Does anyone have any recommendations on the minimum amount of text the homepage should have so that it will rank (or at least not be penalized)? It's a site created by a known brand, but the site itself and URL are relatively new. Katherine
On-Page Optimization | | KatherineWatierOng0 -
"translation" of code in htaccess file
Hi everyone! I am a newbie to the whole SEO and html thing and I am trying to get a better understanding of the "behind the scenes" part of my website. I hope I can find someone here who can translate a piece of code for me that I have in my htaccess file: Options -Multiviews
On-Page Optimization | | momof4
Options +FollowSymLinks
rewritecond $1 !^(index.php|public|tmp|robots.txt|template.html|favicon.ico|images|css|uploads)
rewritecond %{REQUEST_FILENAME} !-f
rewritecond %{REQUEST_FILENAME} !-d
rewriterule ^(.*)$ index.php?link=$1 [NC,L,QSA] I know that something is getting redirected to the index file, but what (or when) exactly? Does the word "robots"mean that search engine crawlers are getting redirected here? And is this good or bad (in terms of SEO)? Or is this redirecting people who try to get to my robots/ template or image files?? Thanks in advance for any answers!0 -
Does Hiding the article´s date in a blog affect SEO?
We are running a blog and would like to hide date, as users find the article less interesting if they are dated more than 2 years ago. Will hiding the article´s date in a blog affecto SEO? Thanks in advance u2cJxsr
On-Page Optimization | | goperformancelabs0 -
Handling multiple locations in the footer
I have a client with several locations. Should I include only the main office's address in the footer? The client is wanting to add them all.
On-Page Optimization | | SearchParty0 -
Will ReDesigning my website negatively affect SEO?
I currently have a one page website which lists all the company information on one page [domain name is www. bwd . co . za]. It uses javascript for navigation. My challenge is that the layout is outdated and I would like to update it with a high quality WordPress theme which will not be a one-pager. Currently on Open Site Explorer the website has a domain authority of 30/100 and page authority of 41/100. I've worked hard to push the numbers to get to where they are hence I'm a bit concerned. Will re-designing my website negatively affect SEO?
On-Page Optimization | | bonganig0