[OGDev] Google Analytics

David Sheldon dave at earth.li
Tue Mar 20 12:06:25 GMT 2007


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

-- 
Stinginess with privileges is kindness in disguise.
		-- Guide to VAX/VMS Security, Sep. 1984



More information about the OpenGuides-Dev mailing list