We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7869
    • 118 Posts
    I’m using StatCounter for my site’s stats. It works good however it reports that www.my~domain.com/manager/index.php is the most popular page on my site. I want to install some blocking code in the Manager so that my page loads don’t get tracked. Which file should I do this in? The StatCounter code is supposed to be just before the </body> tag. I pasted the code in this file -- manager/includes/footer.inc.php -- but the code does not show up in the browser source and my page loads are still tracked. StatCounter does give the option to block IP addresses, but my IP changes almost daily so it’s become cumbersome to always check and edit that.

    Any ideas on how to keep my Manager use from being tracked?
      -Dorian
      • 7231
      • 4,205 Posts
      That is strange. I thought it would only track the pages with the javascript code like with Google Analytics?
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 25663 MODX Staff
        • 12,272 Posts
        You’re including the code in the manager, so it’s going to be tracked. You need to put it into your templates only for the front end.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 7869
          • 118 Posts
          Quote from: dev_cw at Feb 02, 2009, 05:43 AM

          That is strange. I thought it would only track the pages with the javascript code like with Google Analytics?

          That’s what I thought too. I can’t figure it out because the tracking code is only on the site pages, but as stated above, the Manager is being tracked too. huh

          Quote from: rthrash at Feb 02, 2009, 06:11 AM

          You’re including the code in the manager, so it’s going to be tracked. You need to put it into your templates only for the front end.

          I haven’t added the code to the Manager. The reason I want to is because StatCounter can set a "blocking cookie" in my browser and it will disregard all pages where it sees the javascript tracking code.
            -Dorian