Hi Jérome,
I was trying to implement Analytics on my modx revo environment Rev 2.2.7pl site, and I can't get it to send stats to google (watching site analytics in real time mode)
I provide you under with the snippet call and my original ga code :
[[!Analytics? &setAccount=UA-35841363-1
&setDomainName=amazili-communication.com
&debug=1
]]
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-35841363-1']);
_gaq.push(['_setDomainName', 'amazili-communication.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(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>
the debug code is hereunder :
<script>
var _gaq=_gaq||[];
var pluginUrl='//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push=[ ['_require', 'inpage_linkid', pluginUrl],['_setAccount','UA-35841363-1'], ['_trackPageview'], ['_setDomainName', 'amazili-communication.com'] ];
(function(d,t)
{var g=d.createElement(t),
s=d.getElementsByTagName(t)[0];
g.async=1;
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));</script>
here are the current installed packages, all in the latest version :
Analytics
archivist
Articles
Big Brother
FormIt
getpage
getResourceField
getresources
Quip
sitemapFriend
taglister
Wayfinder
Any idea ?
Thanks
Philippe