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 to handle "app" pages.
Hey guys, We've got an app - a drag & drop email builder - and we are looking to improve our seo efforts. That being said - we're not sure how to treat pages of the app that wouldn't tell google nothing at all basically (loads of duplicate content, lorem ipsum, etc). They're pages that are used by the clients to build their own templates ex: builder pages they are extremely useful for our clients, but GGL wouldn't prolly make too much sense out of them. That being said - rather randomly, before we nofollow noindexed them, some of them started ranking (probably given to the really great analytics data we have on them. Loads of clients, loads of time spent on page, etc). Can we harness them in a better way, or just nofollownoindex them? I don't really see how they can be "canonicalised" since they don't really provide any quality content for Google. Much like MOZ's keyword explorer tool for ex. Mucho quality for us - but not a google fan favorite content-wise. Thanks for your help 🙂
On-Page Optimization | | andy.bigbangthemes0 -
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 -
How we can rank two keywords
Here is my example. I developed a property inspection app, where the keyword I try to rank is property inspection app, and property inspection software. Property Inspection Software got slightly more traffic than app. I would like to rank both of this keyword high for my main website, but there is only one title, one H1 tag I can use to have keyword, where if I use "App" there is no way to have "Software" on the title, etc. How can I deal with such a case? Any help will be appreciate.
On-Page Optimization | | terrysun0 -
SEO Optimizing in UMBRACO
Hi there, I am planning to use UMBRACO to manage my existing website, so my question to Seomozzers out there is what should I be aware of, how safe is it to have UMBRACO in terms of SEO. By using this software, would it be possible to get a positive or negative impact on my keyword rankings? Thanks!
On-Page Optimization | | matti_wilson0 -
Schema business address - can this affect me in the national rankings
Looking at using Schema microdata on our new website, we currently rank quite decently in Google UK. If I was to add schema mark up for our business address could this effect us in Google UK rankings wise i.e. our rankings for national search (for want of a better word!) suffer but our local rankings increase?
On-Page Optimization | | Jon-C0 -
A "show all" category for products resulting in to many on-page links
I've got reports from my seomoz pro campaign that I have more than 100 on-page links on a page of my ecommerce store. This page is a "show all" category displaying ALL products from ALL my categories on the site. So it is NOT a "show all" for displaying all products in a certain category on one page instead of having to click through page 1, page 2 etc. What I don't clearly understand is why I get this from the reports, as it does not display all products in one single page. What it does is gathering all products from all categories in one place, but instead of showing all products in one page it is divided into pages 1 - 13. What should I do to resolve this? Could it be the seomoz campaign giving me an incorrect result? Appreciate you taking the time to help! Thank you.
On-Page Optimization | | danielpett0 -
Target the homepage?
Hi SEOmoz! I have a potential client who is piloting a web application in a specific geo market, but plans on expanding to 10+ cities in the near future (6-12 months). He wants to rank for "[initial geo market] + [service]". Should I optimize the homepage for this keyword (which will be relatively easy to rank for), or encourage him to build out a geo-specific template (could take a few months to add this to the application) for this market, and try to rank that so it's scalable? Thoughts are appreciated. 🙂 EDIT: In terms of the business type, this is a web application that helps people organize their travel. It isn't your local traditional restaurant that is trying to compete with others in their area. We would be competing with other nationally recognized travel applications (TripAdvisor, Yahoo Travel, etc), most likely.
On-Page Optimization | | TommySwanson520 -
SEO for Blogs - Top Tips
Hi People, This may have been covered before (i am sure it had) but I was wondering if people use the same SEO tactics for blogs as they do for other sites. Really wondering if there are any tips for blogs specifically ? 🙂 Thanks all
On-Page Optimization | | wedmonds0