Announcement

Collapse
No announcement yet.

Google Analytics ('_gat' undefined & suppressing acatalog from URLs)

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

    Google Analytics ('_gat' undefined & suppressing acatalog from URLs)

    Hello,

    Been having a error with analytics for a while now.
    Apparently '_gat' is undefined, but this only happens on the home page.

    The reason appears to be actinic adding 'acatalog/' to all urls on my index page, which is all well and good except for in my analytics code!

    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "acatalog/google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>

    So, how can I stop this from happening?

    I don't know much about javascript, would it be save to ditch those variable bits and just have a hard coded URL like http://www.google-analytics.com?

    Any suggestions would be muchly appreciated?
    Police Equipment & Tactical Gear at CopShopUK

    Safety Boots & Work Boots at BootShopUK

    #2
    I have been having the same problem - and a nice 'flatline' in my Analytics to go with it too

    I found an answer which works for me here:

    http://community.actinic.com/showthread.php?t=36618

    It's courtesy of that clever 'Norman' bloke - again
    Brian Mercer

    Azurra Mosaics
    www.mosaics.co.uk

    Comment


      #3
      This has been mentioned a number of times and seen many times also, it's clearly an actinic bug IMO that needs an acitnic fix. It's no good adding these functions to the software, if they cause more hassle in doing so.

      Comment


        #4
        Actinic is seeing the src= bit in that document.write line and getting confuddled.

        Try replacing src= with src%3D
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks people! All fixed now.

          Replacing src= with src%3D didn't work but the solution on the other thread did the trick nicely.

          Thanks again and merry christmas
          Police Equipment & Tactical Gear at CopShopUK

          Safety Boots & Work Boots at BootShopUK

          Comment


            #6
            Sorry my post #4 above didn't work. I was hoping for an easier tweak than the one in the #2 link.

            I've another suggestion that might be easier for others to use, if you're willing to try it and report back.

            See if using your original code (#1) and changing ga.js to ga%2Ejs does the trick.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Hi, I can confirm that Normans suggestion above works, or at least on our site.
              Jethro

              TridentUK.com, the yacht and dinghy shop on the web

              Comment


                #8
                Norman, you are a hero.
                Works perfectly. Thank you so much. Donna
                Donna

                Chief bunting supplier to Take That!

                Comment


                  #9
                  I am sure this worked fine in 9.0.4. How come they keep breaking things!

                  Thanks Norman
                  Alan Johnson

                  Quality Parrot Cages & Accessories by Parrotize UK
                  Pet Accessories by Animal Instinct

                  Comment


                    #10
                    Resetting layouts back to factory default could cause this.

                    Under v9.0.4 I have found that any new site I create the first 2 layouts in the google section of the library are blank - even the compare and reset to factory leaves it blank. I have to copy the layout content over from a pre v9.0.4 site into every site I now launch from new!!!! Just another one for the Actinic quirk list of jobs to do before starting work on a new site


                    Bikster
                    SellerDeck Designs and Responsive Themes

                    Comment


                      #11
                      brand new site under v10.0.1 is also giving this same problem again

                      Comment


                        #12
                        I found a post that solved the issue dated November 2009 but I cannot find it now. It was from an Administrator and it fixes the issue but, unsurprisingly or not, the issue is not fixed in August's 10.0.2 KIIA

                        Code removed as copy and paste errors as per Norman's later comments.

                        See the original here:

                        http://community.actinic.com/showthread.php?t=44926
                        Jonathan Chappell
                        Website Designer
                        SellerDeck Website Designer
                        Actinic to SellerDeck upgrades
                        Graphicz Limited - www.graphicz.co.uk

                        Comment


                          #13
                          I think this is the KB article you refer to: http://community.actinic.com/showthread.php?t=44926

                          I needed to use it myself a couple of weeks ago.

                          Comment


                            #14
                            Jonathan:

                            The code you've posted in #12 has a lot of spurious line feeds in it which may break things.
                            Norman - www.drillpine.biz
                            Edinburgh, U K / Bitez, Turkey

                            Comment


                              #15
                              The code is from KB Administrator
                              Jonathan Chappell
                              Website Designer
                              SellerDeck Website Designer
                              Actinic to SellerDeck upgrades
                              Graphicz Limited - www.graphicz.co.uk

                              Comment

                              Working...
                              X