Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Dec 2006
    Posts
    121
    Plugin Contributions
    0

    Default Q about statcounter.com and zen cart CSS

    hello all. this maybe in the wrong place, but I think it most fits here..

    I use www.statcounter.com to track my stats. They give me a code to add to my site that stays in the background and counts while people surf...

    well, I wanted it in my footer, but when I put it there, it breaks all my code and I get a page can not be displayed error.

    Here's the code that they give me:

    Code:
    <!-- Start of StatCounter Code -->
    <script type="text/javascript" language="javascript">
    var sc_project=1126501; 
    var sc_invisible=0; 
    var sc_partition=10; 
    var sc_security="1a349e49"; 
    </script>
    <script type="text/javascript" language="javascript" src="<A href="http://www.statcounter.com/counter/frames.js"></script><noscript><a">http://www.statcounter.com/counter/frames.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c11.statcounter.com/counter.p...49&invisible=0" alt="website metrics" border="0"></a> </noscript>
    <!-- End of StatCounter Code -->
    (sorry I don't know how to insert fancy code in this bb)

    Can someone tell me what can possibly be causing the problem? and is this possilbe to fix?

    Thanks!
    Last edited by Kim; 19 May 2007 at 07:28 PM.

  2. #2
    Join Date
    May 2006
    Location
    Pacific Northwest (Canada Jr.)
    Posts
    25
    Plugin Contributions
    0

    Default Re: Q about statcounter.com and zen cart CSS

    i use a statcounter as well, and i think that their instructions require that the code be inside of < body > tags. since the < body > tags are in the includes/templates/yourtemplate/common/tpl_main_page.php, you have to add it there.

    i put my code in after this, since it's the last thing:

    <!--eof- banner #6 display -->

    but before the < / body > tag! should work like a charm! i have mine "hidden" though - so there's no little statcounter icon displayed.

  3. #3
    Join Date
    Dec 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: Q about statcounter.com and zen cart CSS

    is there another place for this file to be? it is not in any of my template folders. thanks.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Q about statcounter.com and zen cart CSS

    If you don't already have it in your template folder, find it in includes/templates/template_default/common/tpl_main_page.php and copy it to includes/templates/yourtemplate/common/tpl_main_page.php for editing.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,524
    Plugin Contributions
    127

    Default Re: Q about statcounter.com and zen cart CSS

    FWIW, I put the noscript code in includes/templates/custom/common/tpl_header.php and the script code in (new file) includes/templates/custom/jscript/jscript_custom_counter.php - worked like a charm.

    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Jun 2008
    Posts
    25
    Plugin Contributions
    0

    Default Re: Q about statcounter.com and zen cart CSS

    Quote Originally Posted by swguy View Post
    FWIW, I put the noscript code in includes/templates/custom/common/tpl_header.php and the script code in (new file) includes/templates/custom/jscript/jscript_custom_counter.php - worked like a charm.

    Scott
    Hope you realise that if the Statcounter website goes down then the rest of your page will not load. This is why Statcounter suggests putting it at the end of all of your code but before the </body> tag.

    Mat

 

 

Similar Threads

  1. web root zen-cart.com v.s. zen-cart.com/store
    By krystalplayer in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 11 Jun 2010, 08:04 AM
  2. How do install Statcounter.com/ page analytics on my site?
    By melissa1986 in forum Basic Configuration
    Replies: 5
    Last Post: 15 Feb 2010, 12:04 AM
  3. Zen Cart and USPS.com not matching
    By unclemantis in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 20 May 2009, 02:36 PM
  4. zen-cart.com -> www.zen-cart.com -- How to do?
    By qhome in forum General Questions
    Replies: 7
    Last Post: 18 Dec 2006, 06:46 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