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
-
Category Pages are not Shown when searched for "brandname Category name"
Hi, Someone googled our brand name + category page name and our category page didn't showed up first so he says it's a bad job/thing. so help me to fix this. Googled "sepalika acid reflux" without quotes. Thank you.
On-Page Optimization | | Sepalika0 -
Login Page Outranking Homepage
Hi all, I have a subscription based website with a members login. For our branded terms, this login page is outranking the homepage and we're unsure what, if anything to do about it. One suggestion was to deindex it, but the counter-argument was that we'd be taking away one of our spots on the first page. I feel from a user experience, it would be best to deindex it to try and get the homepage ranked #1 since the login page not optimised towards new visitors. Another suggestion was to just optimise the title and description to make it look a little nicer. I would love to hear your thoughts Thanks!
On-Page Optimization | | CupidTeam0 -
Our SEO suggests thinning our homepage - is this a good idea?
We provide a single medical service in London. Our domain is "service"london.co.uk. Our home page consists of: Welcome message (40 words) Reasons why customers choose us (720 words) - as bullet points Benefits of the service (380 words - as 6 subheadings) Then a small sample of testimonials It currently looks word doc boring so that's definitely an area we are talking to our designer about. We currently rank second or third for our most popular keywords which are mostly variations of "service london" - these go straight to our home page. Our competitors do the same. The only other pages that rank are /pricing (for "service london price") and /reviews (for a tiny proportion of rarer keywords) The main variations in the services we provide is adult and children. We have /adults and /children pages for this where we describe the actual procedures (these are relatively new pages so perhaps they will rank for "adult/children service london" in the future, but right now, they still go to the home page). Now our SEO agency suggests we spread the content into more pages: Why us page, Benefits of service page etc., (also suggested we add more high quality content pages). Our home page will be similar to what moz suggested on whiteboard Friday - a few key points then directing them towards the sub-pages to read more. However I am unsure if this is suitable for us where the great majority of our organic traffic comes from "service london". These visitors should ideally still come to our home page and I'm not sure if Google will be thrilled that my home page is now poorer in terms of content despite the fact that the home page still links to these high quality pages on my site. Would really appreciate this beautiful community's insights on this. Thank you.
On-Page Optimization | | LondonAli0 -
Rel="canonical" at the same page
Hello Everyone!! We have a Joomla Site and in the template we have a php function that create the **link rel="canonical" **and in the href inserts the same page url. For example, if the we do a search and the url have some cookies. That Url is gonna be the **rel="canonical" **for that page. Is it working correctly? We need an advice to to set it up correctly! Thanks!
On-Page Optimization | | mycostaricalink0 -
Is Anybody Familiar With This SEO Reporting Tool?
Just for kicks, I decided to pay 5 bucks for an SEO Report on a website I was working on for a client. Yea FIVERR. The report was actually not too bad and I was able to clean up a bunch of stuff. Here is a link to other sites on the internet who use this tool. I would like to use it for myself so I'm trying to figure out the source of the report. Here are a few urls to the reports. Remove the two stars in the URL. I don't want to give them a backlink. http://rapid**purple.com/services/free-seo-analysis/
On-Page Optimization | | Czubmeister
http://www.doc**stoc.com/docs/93426462/SEO-Plan Has anybody used these or know the source? -Bob1 -
How about this "onpage overoptimisation" everybody is talking about? Are the on-page optimisation reports still to be used?
Are the on-page optimisation reports still to be used? If we do check all factors we risk penalization because of latest Panda update?
On-Page Optimization | | MugurCosminFrunzetti0 -
An ecomerce seo question
Looking for a few opinions on this please...Trying to reduce the number of pages I have to seo to rank on my websites and at the same time avoid the google over optimisation issues. Previously on our ecomerce websites we would have a category page for, say, 12 times, we would then seo that page for generic terms related to the page; ie, blue dress, cheap blue dress, blue party dress etc. The individual product pages would then be seoed with the title and h1 tags containing the exact product name and the url containing the product name too. This worked fine but we are suffering from some duplicate content issues of late (the products are mixture of few unique items and probably 95% imported affiliate datafeeds) as we have an average of 80,000 products per store we have neither the time nor the staff to rewrite everything (the products update daily directly from the merchants so would need to be done daily) What we are planning on moving toward is blocking the individual product pages from Google and instead putting all efforts into the category pages. The category page will contain plenty of quality unique content related to the category so the only duplicate content would be a line of the product name and price. Whilst we would still rank the category page for broad keywords we also would like to now rank the category page for 16 individual product names as there is a good profit to make made by the sheer volume of product names we plan on ranking for. Obviously we could not get all the products into the url and the page title as that would be silly but would it be acceptable to have multiple h2 tags on the page, each with a different entry, the product names (H1 will be saved for the category name). We can easily bold these keywords to help in the optimisation as per the seo moz onsite analysis tool and we can add image text to ensure the product name is featured at least twice on the page. As so few sites actually seo for the long tail product names, most retailers rank by virtue of their domain quality alone, our onsite seo doesn't have to be 100% but getting the best we can out of the page will help the efforts. Many thanks Carl
On-Page Optimization | | Grumpy_Carl0 -
What's the best practice for implementing a "content disclaimer" that doesn't block search robots?
Our client needs a content disclaimer on their site. This is a simple "If you agree to these rules then click YES if not click NO" and you're pushed back to the home page. I have this gut feeling that this may cause an upset with the search robots. Any advice? R/ John
On-Page Optimization | | TheNorthernOffice790