|
I had this problem suddenly happen and inserted the tracking code into System->General->Design->Footer->Miscellaneous HTML which seemed to work ...
The problem, after a good look, turned out to be having ‘Cookie restriction mode’ turned on and the culprit being the if statement as mentioned below. Delete the if statement and it now works fine. Be sure to make a copy in your theme folder.
<?php if (!Mage::helper('core/cookie')->isUserNotAllowSaveCookie()): ?>
and
<?php endif; ?>
RB2009 - 03 May 2012 03:57 PM problem is located here,
no fix yet but im sure this is what is doing it.
looks like the problem is related to this code here,
<?php if (!Mage::helper('core/cookie')->isUserNotAllowSaveCookie()): ?>
<?php $accountId = Mage::getStoreConfig(Mage_GoogleAnalytics_Helper_Data::XML_PATH_ACCOUNT) ?>
<!-- BEGIN GOOGLE ANALYTICS CODEs -->
<script type="text/javascript\">
//<![CDATA[
var _gaq = _gaq || [];
<?php echo $this->_getPageTrackingCode($accountId) ?>
<?php echo $this->_getOrdersTrackingCode() ?>
(function() {
var ga = document.createElement(’script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (’https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
var s = document.getElementsByTagName(’script’)[0]; s.parentNode.insertBefore(ga, s);
})();
//]]>
</script>
<!-- END GOOGLE ANALYTICS CODE -->
<?php endif; ?>
located in
app/design/frontend/base/default/template/googleanalytics/ga.php
more specifically problem could be the code highlighted.
|