Announcement

Collapse
No announcement yet.

More Google Analytics trouble

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    More Google Analytics trouble

    Hello all,

    I am getting a _gat undefined error just on the home page due to Actinic deciding to instert /acatalog to the front of the path...

    I have read both
    http://community.actinic.com/showthread.php?t=40396
    and
    http://community.actinic.com/showthread.php?t=36618

    and now I have the following code in my 'Google Analytics Tracking Code' layout

    Code:
     
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsGoogleAnalyticsEnabled%22%20%2f%3e%20%3d%3d%20true" >
    <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">
    if (typeof(_gat) == 'object')
        {
        var pageTracker = _gat._getTracker("<actinic:variable name="GoogleAnalyticsNumber" />");
        pageTracker._initData();
        pageTracker._trackPageview(<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Receipt%22">"/receipt.html"</actinic:block>);
        }
    </script>
    </actinic:block>
    But I still get the problem on the home page...

    Have I missed something? Any help greatly appreciated.

    Best regards

    Alec
    Alec Moss
    Business Webpage Ltd
    Web Design
    Starter Websites

    #2
    I follow the KB article usually and get no problems, try that one out, i think it's the most recent one.

    Comment


      #3
      Or post an URL so someone can see what's happening.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Url

        Hi,

        The site URL is http://www.ducasa-direct.co.uk/

        All pages within the acatalog folder are fine - the home page instance has inserted acatalog/ in front of the google url

        Best regards

        Alec
        Alec Moss
        Business Webpage Ltd
        Web Design
        Starter Websites

        Comment


          #5
          It's a common problem, one we've seen on here a number of times and know about. Have you tried the KB article yet?

          Comment


            #6
            You said in post 1:
            and now I have the following code in my 'Google Analytics Tracking Code' layout
            Code:
                document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga" + "." + "js' type='text/javascript'%3E%3C/script%3E"));</script>
            But your site is actually using:
            Code:
            document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
            If you change this line to what you said in #1 all will be well.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment

            Working...
            X