www.webdeveloper.com
Results 1 to 5 of 5

Thread: toStaticHTML Function : SEO impact?

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    92

    Question toStaticHTML Function : SEO impact?

    Does anyone see a problem with the following code that might have an impact on SEO or the way that google parses our website?

    After using this code we noticed a significant drop in traffic and we noticed that google suddenly stopped listing many of the pages on our site and instead began listing the page that we are redirecting to.

    Any thoughts would be appreciated.

    Code:
    <script type="text/javascript"> if (typeof(toStaticHTML)=="function"){alert('Message goes here');window.location = "http://www.mydomain.com/redirect.php"}</script>

  2. #2
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    you probably saw a drop because the user experience is poor.

    yes, google can follow redirects.

  3. #3
    Join Date
    Apr 2005
    Posts
    92
    No, that's not it. Though I see where your coming from.

    After reviewing google analytics, the traffic drop was ALL from organic search traffic.

    Google COMPLETELY changed the way it listed our site in search results.

    What is it about this code that might have an impact on the way Google is parsing our site? It caused it to drop almost all the pages that were previously listed and only seems to show the page we are redirecting to.....

  4. #4
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    you using redirects. don't forget that google's spiders run simple javascript like this.
    google doesn't like redirects, heck, nobody does...

    by pointing to the new page, google saves it's users a few HTTP transactions and a little bit of time.
    it looks like the new page is called redirect.php, which might be yet another re-direct after the javascript one on the landing page.
    if so, that's two re-directs and i wouldn't be surprised if google's links landed on any particular one of the three actual urls encompassed within...

  5. #5
    Join Date
    Apr 2005
    Posts
    92
    Ya that makes sense. Google was being sent to a dead-end and unfortunately it had serious repercussions on our search traffic. It literally dropped ALL pages from our site.

    I will be sure to avoid redirects in the future. Hopefully it doesn't take too long for google to put us back on the map.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles