Announcement

Collapse
No announcement yet.

back up error: 'google-analytics.com\ga.js was not found System error 2 - ...

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

    back up error: 'google-analytics.com\ga.js was not found System error 2 - ...

    Just upgraded to V10 and I'm getting this error when creating a snapshot.

    I installed V10 onto a new laptop and loaded the snapshots from my old PC, running version 9. Everything seemed pretty smooth... just a couple of missing images. Refreshed the site and everything seems to checkout ok.

    Then... I created snapshots of the various sites I run, and I get the same error on each site.

    There is no 'google-analytics.com' folder... so where is the error coming from?

    #2
    This problem is that Actinic is picking up some Google Analytics code and treating it as a local file reference. It then tries to include that in the Snapshot and thus errors.

    Looking at your site (presumably http://www.pedigreecharm.co.uk) I see duplicated code at the bottom of your pages:
    Code:
    <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("UA-308489-1");
    pageTracker._initData();
    pageTracker._trackPageview();
    //-->
    </script>
    
    
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script><script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-308489-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    The second block is obsolete and should be deleted from your Overall Layout(s).

    The first block comes from the line:
    Code:
    <actinic:variable name="GoogleAnalyticsMarkup" value="Google Analytics Tracking Code" />
    And if you look that up in the Library, it might be a good idea to change the line:
    Code:
    	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    To be:
    Code:
    	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com" + "/ga" + "." + "js' type='text/javascript'%3E%3C/script%3E"));
    Which should prevent Actinic from messing with this code.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X