Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2006
    Posts
    71
    Plugin Contributions
    0

    Default Placing statistic code in ZEN

    Is it possible to put my hidden statistic code into my zen cart to find out the pages people are going to. I was thinking of putting it into the Header or would this be a bad place. Below is the code I will be placing in.

    <!-- Start of StatCounter Code -->
    <script type="text/javascript" language="javascript">
    var sc_project=2021236;
    var sc_invisible=1;
    var sc_partition=18;
    var sc_security="02ab370a";
    </script>

    <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c19.statcounter.com/counter.php?sc_project=2021236&java=0&security=02ab370a&invisible=1" alt="invisible hit counter" border="0"></a> </noscript>
    <!-- End of StatCounter Code -->
    "Buy the book, its great to have a Hard copy in front of you to read step by step, money well spent."
    http://www.zen-cart.com/book

  2. #2
    Join Date
    Dec 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Placing statistic code in ZEN

    You can put that code in the header... or you can do it in the main page template just before the closing body tag /body. Then your page will load before your counter, which may be better for your customers if StatCounter has a problem.

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

    Default Re: Placing statistic code in ZEN

    please note that the code you displayed will create an SSL issue unless you either use a secure url or set it up to NOT count sl pages
    Zen cart PCI compliant Hosting

  4. #4
    Join Date
    Nov 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Placing statistic code in ZEN

    Thanks for that, but which file exactly should I put the code into in the templates section
    "Buy the book, its great to have a Hard copy in front of you to read step by step, money well spent."
    http://www.zen-cart.com/book

  5. #5
    Join Date
    Nov 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Placing statistic code in ZEN

    Quote Originally Posted by Merlinpa1969 View Post
    please note that the code you displayed will create an SSL issue unless you either use a secure url or set it up to NOT count sl pages
    There's no SSL pages on the web page
    "Buy the book, its great to have a Hard copy in front of you to read step by step, money well spent."
    http://www.zen-cart.com/book

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

    Default Re: Placing statistic code in ZEN

    then place it in the
    includes/templates/YOUR TEMPLATE/common/tpl_main_page.php

    just above the </body>
    Zen cart PCI compliant Hosting

  7. #7
    Join Date
    Nov 2006
    Posts
    71
    Plugin Contributions
    0

    Default Re: Placing statistic code in ZEN

    Thanks for that
    "Buy the book, its great to have a Hard copy in front of you to read step by step, money well spent."
    http://www.zen-cart.com/book

 

 

Similar Threads

  1. v139h Placing Google Adwords Remarketing Code On Specific Pages
    By emovendo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Jul 2012, 12:31 AM
  2. for adminpage; Reports searched words statistic exists?
    By dedj in forum General Questions
    Replies: 4
    Last Post: 23 Jul 2007, 07:50 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