Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2007
    Posts
    163
    Plugin Contributions
    0

    Default Error when adding Google Sitemap snippet

    I have added the following snippet to define_ main_page.php


    <script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-3580723-2");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>

    between <HTML> and <BODY>.

    The purpose of this snippet is to create a Google Sitemap as instructed by Google.

    I also placed this snippet in the same place on several of the products that I sell.

    Although the main page appears fine I am getting the following error on the main page through the Web Developer.

    unexpected end of XML source
    pageTracker._trackPageview();\n


    When I click on the product called “software” I receive the following error.
    _
    gat is not defined
    <script type="text/javascript">

    QUESTIONS:
    1. Are these errors serious?
    2. Is there a way to correct them



    My website is POSCheap.com which is in the development stage.

  2. #2
    Join Date
    Aug 2007
    Location
    England
    Posts
    65
    Plugin Contributions
    0

    Default Re: Error when adding Google Sitemap snippet

    To be honest, I just used the Google Sitemap mod that you can download from the Zencart downloads area. It works fine for me, and was quicker than fiddling with Google's own code.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Error when adding Google Sitemap snippet

    I echo Boinkit... Use the sitemaps mod.
    20 years a Zencart User

  4. #4
    Join Date
    Oct 2007
    Posts
    163
    Plugin Contributions
    0

    Default Re: Error when adding Google Sitemap snippet

    Maybe I missed something but I looked at the Google Sitemap download and thought is was a lot more complicated then simply pasting the Google Sitemap snippit provided by Google into each of my pages.

    Does this download do something more?

  5. #5
    Join Date
    Aug 2007
    Location
    England
    Posts
    65
    Plugin Contributions
    0

    Default Re: Error when adding Google Sitemap snippet

    Quote Originally Posted by wwwursa View Post
    Does this download do something more?
    Yes, it works!

    It does require a bit more than addign a code snippet, but it is largely adding files into the correct directories on your server. The install instructions for it tell you all you need to know

 

 

Similar Threads

  1. Error Message When Generating XML Sitemap For Google
    By nicedood in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 24 Feb 2010, 12:35 PM
  2. Sitemap XML - Google Error
    By kevinmc3 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Jun 2009, 04:00 PM
  3. Help Adding Google Sitemap
    By Globie in forum General Questions
    Replies: 2
    Last Post: 17 Sep 2008, 06:59 PM
  4. google sitemap error
    By acappie in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 12 May 2008, 08:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg