Friday, February 1, 2008

Nice Messages To Write

Analytics

I have absolutely failed to run the plug-in
Analytics available resources MODx.
The solution? I stupidly used SkinGraft to edit the template of the site, and paste the GA just before the closing body tag.

And it works ...

Obviously, I have a template. With 200 different templates, it's less funny.

GA: return

So I was helped by a programmer of my knowledge. Here's how it proceeded:
- it creates a chunk called google-analytics code in which the contents of the Google code, type
\u0026lt;scri & # 112; t type = "text ; / javascript "& # 62; var
gaJsHost = (("https:" 
== document.location.protocol) ? 
"https://ssl." : "http://www.")&#59; 

document.write(unescape("%3Cscript src='" + 
gaJsHost + "google-analytics.com/ga.js' 
type='text/javascript'%3E%3C/script%3E"))&#59; 
</script> 
<script 
type="text/javascript">
var pageTracker = 
_gat._getTracker("UA-xxxxxxxxxx-x")&#59; 
pageTracker._initData()&#59; 
pageTracker._trackPageview()&#59; 
\u0026lt;/ script>

- In template, it inserts a call:
\u0026lt;/ div> {{& # 103; oogle-analyte ics}} \u0026lt;/ body & # 62; \u0026lt;/ html>

And that's all. Voila. Easy!

0 comments:

Post a Comment