Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2010
    Posts
    5
    Plugin Contributions
    0

    Default Help figure out which file creates this text

    I have a store setup here: http://www.dreamingrobots.com/store/

    Every page displays this text: /** * Added Google Analytics */

    I can't figure out what in zencart is generating this text. Could people give me some ideas on where to look?

    It is getting generated very early. When I look at the source for the page it looks like this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">

    /**
    * Added Google Analytics
    */
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-76839-2");
    pageTracker._trackPageview();
    } catch(err) {}</script>

    <head>
    <title>DreamingRobots, The Store</title>
    ...

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Help figure out which file creates this text

    Quote Originally Posted by mribble View Post
    I have a store setup here: http://www.dreamingrobots.com/store/

    Every page displays this text: /** * Added Google Analytics */

    I can't figure out what in zencart is generating this text. Could people give me some ideas on where to look?

    It is getting generated very early. When I look at the source for the page it looks like this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">

    /**
    * Added Google Analytics
    */
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-76839-2");
    pageTracker._trackPageview();
    } catch(err) {}</script>

    <head>
    <title>DreamingRobots, The Store</title>
    ...
    check includes/templates/YOUR_TEMPLATE/common/html_header.php

    Also make sure you've installed the google analytics mod correctly.

  3. #3
    Join Date
    May 2010
    Posts
    5
    Plugin Contributions
    0

    Default Re: Help figure out which file creates this text

    Thanks so much! It was in the file you suggested. Google analytics is working with my store so I think it's installed correctly.

  4. #4
    Join Date
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: Help figure out which file creates this text

    Quote Originally Posted by mribble View Post
    Thanks so much! It was in the file you suggested. Google analytics is working with my store so I think it's installed correctly.
    The text should not show like that.

    You might want to change the /*** Added Google Analytics */ comment notation to instead be <!-- Added Google Analytics --> there.

 

 

Similar Threads

  1. Cannot Figure This Out - Error - Please Help
    By mkmcgrath23 in forum General Questions
    Replies: 7
    Last Post: 28 Dec 2010, 07:06 PM
  2. Help! I can't figure this out
    By rjspomer in forum Basic Configuration
    Replies: 1
    Last Post: 6 Feb 2008, 06:08 AM
  3. Please Help Me Figure This Out
    By mkmcgrath23 in forum Addon Shipping Modules
    Replies: 13
    Last Post: 14 Dec 2007, 03:12 PM
  4. Help! I Can't figure out this product problem.
    By Lainee in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 5 May 2007, 12:04 PM
  5. Can you help me figure out this error?
    By KarstensMommy in forum General Questions
    Replies: 1
    Last Post: 23 Aug 2006, 12:58 AM

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