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
-
Canonical Homepage Multi-language Website
Hello, Our development department is building a multi-language webshop.
On-Page Optimization | | X-com_Maasbree
Due to the multi-language module that they've used, we have example.com and example.com/nl having exactly the same content. In order to avoid duplicate content, those pages have the following canonicals:
1. example.com -> Canonical to example.com/nl
2. example.com/nl -> Canonical to example.com/nl Do I loose SEO-value by not canonicalising directly to the root-domain homepage (example.com)?0 -
Can we rank website without main keywords on its homepage?
For example my company website on Google Search Engine... Web Design Company & Digital Agency in Jakarta
On-Page Optimization | | Japracool
coriate.com/
Coriate is a website design & Internet marketing firm in Indonesia. We offer the best web solutions, digital advertising, and SEO Services in the industry. Can I do backlink to it, but different keywords? Like Social Media Management or Facebook Like?0 -
Will "internal 301s" have any effect on page rank or the way in which an SE see's our site interlinking?
We've been forced (for scalability) to completely restructure our website in terms of setting out a hierarchy. For example - the old structure : country / city / city area Where we had about 3500 nicely interlinked pages for relevant things like taxis, hotels, apartments etc in that city : We needed to change the structure to be : country / region / area / city / cityarea So as patr of the change we put in place lots of 301s for the permanent movement of pages to the new structure and then we tried to actually change the physical on-page links too. Unfortunately we have left a good 600 or 700 links that point to the old pages, but are picked up by the 301 redirect on page, so we're slowly going through them to ensure the links go to the new location directly (not via the 301). So my question is (sorry for long waffle) : Whilst it must surely be "best practice" for all on-page links to go directly to the 'right' page, are we harming our own interlinking and even 'page rank' by being tardy in working through them manually? Thanks for any help anyone can give.
On-Page Optimization | | TinkyWinky0 -
New jobboard: Can redirecting folder (site.com/jobboard) to subdomain (jobboard.site.com) hurt SEO?
Hi there, I'm planning to implement a jobboard on my website which needs to be installed on a subdomain (jobboard.site.com) but I'd really like to use site.com/jobboard for promoting this jobboard (jobboard collects external industry jobs). Are there any possible disadvantages when I set up a 301 redirect from jobboard.site.com to site.com/jobboard? Also: What if I want to move this jobboard to a unique domain one day (e.g. jobboard-industry-xy.com), Would that be tricky (as I'd basically have to redirect the folder-to-subdomain redirect to an external domain and therefore get a folder-to-subdomain-to-external-domain redirect...)? Cheers, Thomas
On-Page Optimization | | stl990 -
Solve "Too many links on page"
Hello, I own a Opencart site with a lot of products , I am getting this error in the campaign report, how can I fix it? Read other members replys but I dont understand how .. I would appreacite if you could explain it easy because my native language is spanish and my english is really poor I am really happy of find this site, incredible quality, thank you very much!
On-Page Optimization | | matiw0 -
It is NOW time to invest in SEO consultant, How/ Where can i find a good one???
I have learn the basics of seo and use seoMoz for more then a year. this help me to rank my online store better and increase sales. I only know the basics of seo and it is now time increase traffics to our online store, www.furnacefilterscanada.com How can I hired a good seo consultant? I'm self employes and the only one managing my online store. I want to be shure I invest in a good consultant. Our small business does not have thousand$$$$$ dollards to invest. For example, can I see result if I invest $1000? Thank you
On-Page Optimization | | BigBlaze2050 -
Encouraging users to "like" or "+1" our pages
Do you think its "bad" SEO or maybe google might penalize if we encourage users to like or pages or give us +1 for google?
On-Page Optimization | | cbielich0 -
Wordpress permlinks SEO question
What are SEO advantages or disadvantages of the following - /%postname%/ - adds a trailing / /%postname% - no trailing / /%postname%.html - creates .html URL Thanks
On-Page Optimization | | SamBuck0