1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 17:40:29 +00:00

Added Google Analytics

This commit is contained in:
Jeremy Ruston 2012-06-21 15:37:50 +01:00
parent 6ad60d374b
commit a80cf6b9a8

View File

@ -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);
})();