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
But I still get the problem on the home page...
Have I missed something? Any help greatly appreciated.
Best regards
Alec
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>
Have I missed something? Any help greatly appreciated.
Best regards
Alec
Comment