Thread: Stat Code

Results 1 to 5 of 5

Hybrid View

  1. #1

    Default Stat Code

    hi guys,

    we are wanting to install a small script for some website states, but are unsure on where to put the code.

    i tried to insert the code into the footer.php but geta a security vioation when in SSL Model

    NON SSL
    <script type="text/javascript"> var siteID = '469ee0349'; </script> <script type="text/javascript" src="http://www.freestats.co.nz/tracker.js"></script>


    SSL CODE
    <script type="text/javascript">
    var siteID = '469ee0349'; </script>
    <script type="text/javascript" src="https://freestats.secureserver.co.nz/stracker.js"></script>

    any suggestions much appreciated.

    Craig

  2. #2
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Stat Code

    Do you need the NON SSL code? - it'll be that hardcoded url that's causing the problem
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  3. #3

    Default Re: Stat Code

    hi there,

    is like i need some sort of "IF" statement.

    if page=SSL then SSL code, else non-ssl.

    make sence? :-)

    Craig

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Stat Code

    You have 2 options:

    1. As Ryk suggested, just use the SSL version ONLY ... on ALL pages. That's the simplest, and should result in no warnings.

    2. Write more complicated code using an IF statement around it ... $request_type will be 'SSL' or 'NONSSL' depending on the mode you're in.

    Option 1 is the easiest way.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5

    Default Re: Stat Code

    Yes,

    option 1 is so obvious when you look at it. all working well, thanks guys.
    Last edited by craiglove; 26 Jul 2007 at 08:54 AM. Reason: missed word

 

 

Similar Threads

  1. Stat Counters
    By Interdigital_Designs in forum General Questions
    Replies: 1
    Last Post: 10 Jul 2011, 03:47 PM
  2. Google Analytics stat different from store Admin stat?
    By milli in forum General Questions
    Replies: 1
    Last Post: 24 Feb 2011, 03:06 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