Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2006
    Location
    South Shields - UK
    Posts
    124
    Plugin Contributions
    0

    Default Google Analytics & Zencart

    Hello

    I'm trying to get Google Analytics working on my site:

    "Copy the following code block into every webpage that you want to track. Click in the box below to select the entire code. Copy and paste the code
    segment into the bottom of your content, immediately before the </body> tag
    of each page that you are planning to track. If you use a common include or template, you can enter it there.

    Could somebody tell me the best spot to place the code?

    <script src="http://www.google-analytics.com/urchin.js"
    type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-1309869-1";
    urchinTracker();
    </script>

    Yours BlushFashions

    www.blushfashions.com

  2. #2
    Join Date
    Jun 2004
    Posts
    613
    Plugin Contributions
    0

    Default Re: Google Analytics & Zencart

    the bottom of

    includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

    just above the </BODY> tag

  3. #3
    Join Date
    Jul 2006
    Location
    South Shields - UK
    Posts
    124
    Plugin Contributions
    0

    Default Re: Google Analytics & Zencart

    Many Thanks Chrome Orange

    Got that sorted!

    Yours BlushFshions

  4. #4
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Google Analytics & Zencart

    please note that this line
    <script src="http://www.google-analytics.com/urchin.js"

    will cause your SSL pages to appear un secure and will ( depending on the browser ) throw the security error popup box,

    firefox just blocks out the padlock.
    Zen cart PCI compliant Hosting

  5. #5
    Join Date
    Jul 2006
    Location
    South Shields - UK
    Posts
    124
    Plugin Contributions
    0

    Default Re: Google Analytics & Zencart

    Yes see what you mean about the security

    oh well back to the beginning

    Yours BlushFashions

  6. #6
    Join Date
    Jul 2006
    Location
    South Shields - UK
    Posts
    124
    Plugin Contributions
    0

    Default Re: Google Analytics & Zencart

    Hello Merlinpa1969

    After removing the google code from tpl_main_page.php I found when going to the checkout in explorer I was still getting the security popup that was asking me if I wanted to display unsecure items Y/N. On clicking No I noticed that a side box graphic I had for a link to Tazbar.com was not displayed. However I've since disabled the sidebox graphic in banner manager and the security popup does not appear anymore when going to the checkout. Is this happening because the graphic is stored in a folder I have called custom_graphics in my public folder?

    Yours BlushFashions

    www.blushfashions.com

  7. #7
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Google Analytics & Zencart

    this is because you are using <img src="http:// IMAGE HERE >

    try making it totally relative,
    Zen cart PCI compliant Hosting

  8. #8
    Join Date
    Jul 2006
    Location
    South Shields - UK
    Posts
    124
    Plugin Contributions
    0

    Default Re: Google Analytics & Zencart

    Yes I see where I was going wrong, I thought the graphic was stored locally, but instead it was stored on another server.

    Yours BlushFashions

 

 

Similar Threads

  1. PayPal Express & Google Analytics, Goals, Funnels
    By eyal8r in forum General Questions
    Replies: 0
    Last Post: 28 Mar 2010, 02:21 AM
  2. Google Analytics on zencart
    By colin0502 in forum General Questions
    Replies: 5
    Last Post: 3 Jun 2009, 02:24 PM
  3. Integrate Google Analytics on ZenCart?
    By OLIVIER72 in forum General Questions
    Replies: 2
    Last Post: 12 Apr 2009, 06:09 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR