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
-
Do WooCommerce product tags effect SEO?
I'm just curious if I need these product tags and if they impact in any way at all SEO? - whether that be positively or negatively. on1iRin
On-Page Optimization | | xdunningx0 -
"Avoid Multiple Page Title Elements"
Hi, in page recommondation I get a "Acoid Multiple Page Tile Elements" Fix. Make sure your page has only one <title>tag. </span><em>"Web pages are meant to have a single title, and for both accessibility and search engine optimization reasons, we strongly recommend following this practice"</em></p> <p>Well I'm trying....I am not able to find where og why I have multiple titles in this page?</p> <p>This is a norwegian page, but maybe someone can look through it?</p> <p>http://www.proplantime.no/bransjer/bygganlegg/mannskapsliste</p></title>
On-Page Optimization | | Marked_Proplan0 -
My target keyword is "moringa powder" but my product title is "moringa ultimate original powder". Is this a problem?
The focus keyword is "moringa powder". The product title and default H1 tag is "moringa ultimate original powder". The url also has "moringa ultimate original powder". Yoast is saying the keyword does not appear in the url or any subheadings. So should I change the product title and url to Original Ultimate moringa powder or is having them separated ok? https://greenvirginproducts.com/product/moringa/150-gram-moringa-ultimate-original-powder/ Thanks
On-Page Optimization | | Jeremy-Marion0 -
Should "contact" and "Privacy Policy" pages be no-followed?
I have a few pages like the contact and privacy policy page that I could really care less about as far as whether people visit them, or whether the search engines index them. They also don't have any sort of unique content on them... pretty much duplicates of what you'd probably find on hundreds of other websites. Would it be logical then to just nofollow those pages? I just don't know if maybe there's something hidden that I'm not thinking of. For example, maybe Google wants to see that your website has a privacy policy, and by excluding it, you're actually hurting yourself.
On-Page Optimization | | JABacchetta0 -
Canonical URLs and SEO
After publishing my new wordpress website my on page analysis shows two canonical urls on my homepage. In checking the source code the Yoast SEO plugin states my canoncial url is www.homepage.ca/ This is the only one showing. Having said this I do not add the trailing slash to anything on my url structure. Could this be why the on page analysis tool says there are 2? If so is there any way to resolve this?
On-Page Optimization | | casper4340 -
SEO pluses/minuses of Content used in pop-up windows
I am curious to know what advantages/disadvantages there are to placing content in pop-up windows ( lightbox, etc.). My understanding is that the content can be heavily optimized, but if a user lands on the page where the content is, how will they find it if it is hidden within a pop-up? I guess it is more a of a user experience issue rather than an SEO issue? or not? Hopefully that makes sense. Gary
On-Page Optimization | | Apptixweb0 -
Replacing "_" with "-" in url, results in new url?
We ran SEOmoz's "On-Page Optimization" tool on a url which contains the character "_". According to the tool: "Characters which are less commonly used in URLs may cause problems with accessibility, interpretation and ranking in search engines. It is considered a best practice to stick to standard URL structures to avoid potential problems." "Rewrite the URL to contain only standard characters." Therefore we will rewrite the url, replacing "_" with "-". Will search engines consider the "-" url a different one? Do we need to 301 the old url to the new one? Thanks for your help!
On-Page Optimization | | gerardoH0 -
SEO for E-Commerce
Hello Guys, First of all, I wanna say that I just have some 1-2 years experience in SEO, I´m not a GURU or expert ok? So, take it easy... I have one costumer which wanna develop a E-COMMERCE focusing SEO and best pratices of web development. What care should I have? I mean the most important issues... From the coice of domain name to very specific point. What is the main mistakes SEO made at develop a E-COMMERCE? Thanks so much 😃
On-Page Optimization | | augustos0