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
-
Index SEO Performance
Hi guys, I was wondering if there is a difference in SEO performance between a page which ends with .html or just with a slash. For example: www.domain.com/test/ - www.domain.com/test.html Which one is better? And is there a difference between productpages and productcategory pages. Because we see mostly productpages ending with .html and category pages ending with a slash. Take a look at some big dutch companies like: http://www.coolblue.nl/
On-Page Optimization | | Happy-SEO
http://www.bol.com/
https://www.zalando.nl/ (product page) There are doing this with a reason.... i guess.... Thanks.1 -
Assigning Locations to Wordpress from SEO Perspective?
I am looking for a way to split up and assign my 400 Wordpress posts to my business' four separate office locations. The four offices are in four separate areas with distinct city names. What way makes the most sense from an SEO perspective - assigning the city names as categories? adding the location as a tag, or some other way that I haven't considered? Currently, all posts are categorized by content and have no mention of location. Happy to answer any questions you might need in order to answer. Thank you!
On-Page Optimization | | SDSLaw0 -
Can't rank for a target key word "penalized?"
I've been trying to rank for the key word "kayak fishing" for my site www.yakangler.com. Last year when I started working on the SEO for my site I was on page 30 for Google search results so like the 300th result. After tweaking things on my site I managed to get to the second page but have since fallen all the way back to page 25-26 in the search results. I'm wondering if I'm penalized for this key word. I can't figure out why my site is ranking soooo badly for "kayak fishing" Any help or ideas would be greatly appreciated!
On-Page Optimization | | mr_w0 -
SEO NEWBIE!!!
I am trying to get my website (and business) to the top of the search engines..just like everybody else here. 🙂 I have no idea what I am doing and I have to do this myself, because I do not have the extra money to hire somebody to do it for me. So, my question is... Where can I go to figure out how to do this? I don't know some of the "lingo" used. Like it slow crawled my sites and it wants me to fix a few things and I don't know what it is talking about. HELP!!! Becky
On-Page Optimization | | BeLaRouge0 -
Disclaimer in footer - is it affecting my SEO?
For legal reasons I am required to include a 266 word disclaimer in the footer of every page of my credit card comparison site creditcards.com.au. My question is in 2 parts: is this indexable content likely to be hurting my SEO? if so, what is the best way to include the text in the footer but prevent search engines from indexing it? Thanks.
On-Page Optimization | | OMGPyrmont0 -
Which pages should use rel="canonical" links?
I have many pages showing up as multiple content. Most of the them belong to product pages for my store, login pages that show up everywhere on the site, etc. I know that I need to use the rel=canonical link in the header but after searching the forum I'm still unsure of what pages need it. Is it the pages that I don't want searched/crawled by Google or the other way around? Thanks! Crystal
On-Page Optimization | | COfashionista0 -
What Drupal 7 module for SEO, or if not what other SEO software for article writing does anyone recommend?
what Drupal 7 module for SEO article writing optimization, analyzation does anyone recommend? Thanks in advance. We are updating our sites and need this information. If hter is not a Drupal module what else would you recommend?
On-Page Optimization | | alternativelaw0 -
Transition between a blog to e-commerce webshop, will my domain "lose" authority
Hi Seomoz'ers, Currently I am analyzing the best possible strategy which situation is as follow: I am having a blog with a great EMD about a specific product we are selling. The blog is currently ranking in position 1 for different keyword phrases. However I would like to make a switch from the current Wordpress blog to Magento webshop. Simply because the product should be sold through a professional webshop with many related products. Only the homepage of mydomainname.com is optimized. I am affraid I will lose my #1 ranking when I put my webstore online on this domainname. Most likely I will lose my PA and keep my DA. Which actions should I take in order to keep the ranking in Google position 1 with the new webstore? My best possible option I guess: 1. Replace the Wordpress blog with the Magento webstore and optimize the homepage with on-page seo of the webstore for the targeted keywords. Will this work? As the backlinks I've built are pointing all to the domainname.com (homepage). Thanks in advance. Any more suggestions are welcome 🙂
On-Page Optimization | | Falcopa0