Technology Tools for Ministry

Community

Web-Empowered Church User Community
Total Posts: 3 - Pages (1): [1]
Author: Andy Wojtowski
Posted: Sep 03 2008 - 11:32 PM
Subject: Google Analytics
Is there a recommended Google analytics extension for WEC? I have found a few, but want to find one that is easy to use with WEC.

Thanks
Author: Peter Schott
Posted: Sep 03 2008 - 11:51 PM
Subject: re: Google Analytics
While I really liked the potential for m1_google_analytics, we ended up using mono_ga because I could get it to work. The version of m1_google_analytics I tried was trying to use the old code and Analytics wouldn't recognize it as installed on the site. I was disappointed by that because it had the potential of tracking file downloads, something that mono_ga doesn't do. (Jeff S seemed to think that they performed a neat trick to get that to work, but I'll let him comment on it if he wants.)

Still took some configuration to get things working, but once I had it set, all was good. I think the worst problem I had is that if I put the config values in the wrong place in the template, I got a completely blank site when I loaded it. I get some pretty good information from it now - enough to do what we need, anyway. Just would love to get the file tracking working as well. If you have any success with the m1 extension, please report back on how you got it to work and what version of TYPO3 you're running.
user picture Author: Mark Stephenson
Posted: Sep 04 2008 - 08:43 AM
Subject: re: Google Analytics
Thanks Peter,

Also, since implementing Google Anayltics requires only inserting some Javascript into the template of your TYPO3 website (then it will apply to all pages), it is actually not too difficult to add manually if you are okay with using Typoscript. The Javascript you add comes from a copy and paste from Google so you do not need to understand it. Here is what I added to the main template record in the setup section under the other Header definitions (like page.headerData.10):

CODE:
page.headerData.20 = TEXT
page.headerData.20.value (
<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-123456-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
)


Of course, you need to insert your own Javascript from Google.

This is actually what the extensions insert. But I understand why you would prefer an extension.

In Him,
Mark



Total Posts: 3 - Pages (1): [1]
You must login to post a message to this conference.