Bob recently added Google Analytics stuff to RGL, and I thought it might be a good idea to roll this back into the main distro. Basically, you get a little script that you add towards the end of a web page:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "[your personal key here]"; urchinTracker(); </script>
and that lets Google collect stats on your visitors; you can then log into your Google account to view the reports.
Obviously I would have this as a config option, defaulting to "off".
Any objections to me adding this? Would anyone else find it useful?
Kake
On Tue, Mar 20, 2007 at 11:40:24AM +0000, Kake L Pugh wrote:
<script type="text/javascript"> _uacct = "[your personal key here]"; urchinTracker(); </script>
Can you change the urchinTracker() line to
if (typeof urchinTracker == 'function') urchinTracker();
This way people like me who have urchinTracker addblocked dont get a javascript error on every page. I'm trying to persuade more people to have their scripts degrade like this.
Apart from that it sounds like a good idea. We can also then think about adding GA calls for dynamic events which will help people analyse their traffic.
David
On Tue 20 Mar 2007, David Sheldon dave@earth.li wrote:
Can you change the urchinTracker() line to
if (typeof urchinTracker == 'function') urchinTracker();
This way people like me who have urchinTracker addblocked dont get a javascript error on every page. I'm trying to persuade more people to have their scripts degrade like this.
OK, added to svn with David's improvement.
Kake
On 20/03/07, Kake L Pugh kake@earth.li wrote:
Bob recently added Google Analytics stuff to RGL, and I thought it might be a good idea to roll this back into the main distro. ... Any objections to me adding this? Would anyone else find it useful?
I would - I have Analytics manually added to OGL.
openguides-dev@lists.openguides.org