From a80cf6b9a8f75bcf75d11634cde11e88572d8ab5 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 21 Jun 2012 15:37:50 +0100 Subject: [PATCH] Added Google Analytics --- tw5.com/wiki/analytics.tid | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tw5.com/wiki/analytics.tid diff --git a/tw5.com/wiki/analytics.tid b/tw5.com/wiki/analytics.tid new file mode 100644 index 000000000..93259def4 --- /dev/null +++ b/tw5.com/wiki/analytics.tid @@ -0,0 +1,14 @@ +title: $:/wiki/analytics +type: application/javascript +library: yes + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-32839735-1']); + _gaq.push(['_setDomainName', 'tiddlywiki.com']); + _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); + })();