We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for <a href="http://modxcms.com/extras/package/178">Google Analytics 1.4.1-rc1</a> by eerne.

    Brief Description:
    Adds a Google Analytics tag to every HTML page of your website. Updated to add the new style Google Analytics code but also retains the legacy code as an option.

    Quote from Google:
    The new Google Analytics tracking code (ga.js) has been launched and is now available for you to use when you set up a profile. Installing the lighter ga.js code snippet instead of the old tracking code (urchin.js, "legacy") lets you take advantage of upcoming advanced features and sophisticated reporting while keeping the reliable tracking capabilities of urchin.js. For these reasons, we recommend installing ga.js instead of urchin.js.
      • 22164
      • 50 Posts
      I have installed this, but when I open a page and look at the source, I do not see the google analytics code.

      In other words, how do I know it works.

      thanks
        Happy to have left Back Pain | Sciatica behind.
        • 8522
        • 145 Posts
        This plugins is only included if you are not logged into the manager.

        You can either logout, test with an other browser or try the option testMode = true.

        eni
          • 13736
          • 345 Posts
          Notice the new Asynchronous Tracking Snippet.

          http://code.google.com/intl/zh-CN/apis/analytics/docs/tracking/asyncTracking.html

          In case you want to update.
            • 8522
            • 145 Posts
            hi Pixel Stuff
            Yeah I’ve seen an article about it on ajaxian. I’m trying to put a new version together. They suggest to include the code as last script in the head. But if it is included on OnWebPagePrerender there might still be some other scripts incldued after. So I was thinking of using SplitSnippet [1] or maybe make it an option. not 100% sure yet.

            It be nice to add multiple trackers. I will post a new version for testing here.

            1:
            http://code.google.com/intl/zh-CN/apis/analytics/docs/tracking/asyncUsageGuide.html#SplitSnippet
              • 7269
              • 1 Posts
              I thought this wasn’t working but I found that "test mode" must be true in the configuration. All is well now.

              The instructions could use some clean-up.

              Other than that, it’s a good plugin, thanks for it.
                • 20995
                • 6 Posts
                In retrospect it should have been obvious, but the directions should make slightly more clear to use your own account ID, rather than the copy and pasted one. Otherwise, looking good.