Results 1 to 7 of 7

Thread: Google Analytics error with NOF 12

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    2

    Thumbs down Google Analytics error with NOF 12

    Hi,

    I've entered my google analytics 'UA' code using Tools > Options > Current Site > Site traffic

    NOF 12 adds the (now older fashioned) Google snippet code to the bottom of my html code,
    but, where it's supposed to add the code it enters "$VARIABLE(GoogleAnalyticsID)" instead !

    I've tried entering the UA code in many different ways but it won't insert my unique number.

    I get the following published source code.....


    ......
    <!-- NetObjects Fusion Generated BODY -->

    <!-- Analytics Code Start -->
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("$VARIABLE(GoogleAnalyticsID)");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>
    <!-- Analytics Code End -->
    </BODY>
    </HTML>

    Personally, I'd rather use the NEW google recommended snippet but NOF won't allow me to
    insert it right at the very end of the </HEAD> section. Instead it places it's own code there and
    so Analytics isn't working for me.

    How can I make it work guys?

  2. #2
    Senior Member franko's Avatar
    Join Date
    Apr 2010
    Location
    Tasmania Australia
    Posts
    2,642

    Default

    Easiest way is not to use the Site Analytics Option but rather to use the html button to insert the Google code in the head section.

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    2

    Default thank you

    thanks but when i insert the required code to place it as google suggests, just before the </HEAD> section, NOF later inserts it's own bits and pieces there and the google analytics code doesn't seem to work then. Google recommends the analytics code is the last thing before </HEAD>

    Thanks anyway for your help.

  4. #4

    Default

    Have you unchecked Google analytics in the site options?
    NOF 2013: (AU1)......Windows 7 Ultimate Version 6.1 (Build 7601:SP1)
    Mac OSX 10.8.3.....Parallels Desktop 8 (8.0.18483)
    iMac 27" 2.7 GHz Intel Core 2 i5.....12Gb 1333 Mhz DDR3

  5. #5

    Default

    Quote Originally Posted by ph1 View Post
    thanks but when i insert the required code to place it as google suggests, just before the </HEAD> section, NOF later inserts it's own bits and pieces there and the google analytics code doesn't seem to work then. Google recommends the analytics code is the last thing before </HEAD>

    Thanks anyway for your help.
    Don't believe everything that Google tells you, it works just fine on all of my sites and I have many.

  6. #6
    Junior Member
    Join Date
    Mar 2012
    Location
    Brewster, NY USA
    Posts
    9

    Default

    So, am I to understand that the GA code has to be added individually into every pages' html? Please advise.

  7. #7
    Senior Member 1FugleyKiwi's Avatar
    Join Date
    Jan 2011
    Location
    Playford Waters, South Australia
    Posts
    476

    Default

    No, you can add to each master border you use

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •