undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. On-Page Optimization
  4. Can "window.location" javascript on homepage affect seo?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Can "window.location" javascript on homepage affect seo?

On-Page Optimization
3
4
2.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • StudioCiteroni
    StudioCiteroni last edited by Jun 5, 2014, 3:19 AM

    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!

    1 Reply Last reply Reply Quote 0
    • evolvingSEO
      evolvingSEO last edited by Jun 17, 2014, 8:04 PM Jun 17, 2014, 8:04 PM

      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.

      1 Reply Last reply Reply Quote 0
      • topic:timeago_earlier,13 days
      • StudioCiteroni
        StudioCiteroni @Martijn_Scheijbeler last edited by Jun 5, 2014, 5:48 AM Jun 5, 2014, 5:47 AM

        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

        1 Reply Last reply Reply Quote 0
        • Martijn_Scheijbeler
          Martijn_Scheijbeler last edited by Jun 5, 2014, 5:16 AM Jun 5, 2014, 5:16 AM

          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.

          StudioCiteroni 1 Reply Last reply Jun 5, 2014, 5:47 AM Reply Quote 1
          • 1 / 1
          1 out of 4
          • First post
            1/4
            Last post

          Got a burning SEO question?

          Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


          Start my free trial


          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.

          • See all categories

          Related Questions

          • imjonny123

            Thoughts on adding "near me" to title tag for local SEO?

            I want to lean out my title tags and will most likely be doing an A/B test. They currently have the "Near Me" modifier in there, which I believe Google can distinguish local SEO without it. Thoughts?

            On-Page Optimization | Sep 26, 2023, 11:12 AM | imjonny123
            0
          • Jeremy-Marion

            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 | Apr 25, 2016, 6:26 PM | Jeremy-Marion
            0
          • goperformancelabs

            Does Hiding the article´s date in a blog affect SEO?

            We are running a blog and would like to hide date, as users find the article less interesting if they are dated more than 2 years ago. Will hiding the article´s date in a blog affecto SEO? Thanks in advance u2cJxsr

            On-Page Optimization | Dec 19, 2014, 10:47 PM | goperformancelabs
            0
          • marketing_zoovy.com

            Using Escaped Fragments with SEO

            Our e-commerce platform is in the process of changing to what we call app based stores (essentially running in a browser as single page web-app)  With these new stores they are being built in HTML 5 and using escaped fragments.
            Currently merchants are usually running 2 stores until we launch to app site at 100%.  My questions are really concerning the app stores which right now show on a subdomain but will essentially take over the primary domain.   Here is an example:
            app.tikimater.com and app.sportsworld.com Since I am not a developer, I'm really having a hard time understanding the escaped fragments. I'm using this but https://developers.google.com/webmasters/ajax-crawling/docs/getting-started I'm not sure what my actual urls should look like and what the canonical should be set to. Right now they have been removed but previously they had  http:app.tikimaster.com#!v=1  Also, and how I should be setting up my meta information for Google so 1) pages are indexed timely 2) pages are indexed with the correct information.  I am still setting the meta titles and descriptions but in some instances Google uses other info. With the new platform we are moving away from on page content (written paragraphs) but category pages would have related products embedded.  Should I still be pushing to have some type of intro text, since it would solely be for SEO and not the shoppers experience. All product pages have content (product description etc) Thank you for any advice

            On-Page Optimization | Apr 8, 2014, 12:14 PM | marketing_zoovy.com
            0
          • MitchellStoker

            Does having a "+" in a URL hurt SEO? Would much value be gained changing it to a hyphen?

            There's a site that contains "+" signs in the URL in order to call different information for the content on the page.  Would it be better to change those to hyphens (-), or not that much value will be gained, so leave them as is? Thanks!

            On-Page Optimization | Oct 20, 2011, 5:31 PM | MitchellStoker
            0
          • Yozzer

            German SEO

            Just a quickie, Does anybody know of any strong German SEO agencies? Many Thanks Sean

            On-Page Optimization | Jul 12, 2011, 5:49 PM | Yozzer
            0
          • JedHenning

            Should I include a "|" for better page title SEO results?

            I have seen many sites that include the "|" in page titles and was wondering if there is some SEO value in the practice. Example: Product Name | Company Name Instead of: Product Name by Company Name I have not seen any value in it myself other than a good way to avoid stop words.  I wanted to make sure.  Currently I have the "by" included in the page titles.

            On-Page Optimization | Apr 27, 2011, 7:08 AM | JedHenning
            0
          • inhouseninja

            SEO value of "in the news" links on home page?

            Notice more sites have an "in the News" section on the home page, or something similar like press releases... Apart from providing users fresh content, is there an SEO value to this?  What is the explanation for this? Have a feeling the answer is obvious but just not too sure Thanks a lot.

            On-Page Optimization | Mar 31, 2011, 5:39 PM | inhouseninja
            0

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy

          Looks like your connection to Moz was lost, please wait while we try to reconnect.