Difference between revisions of "Widget:LogMissing"

From Computational Memory Lab
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<script type="text/javascript">
 
<script type="text/javascript">
  
  _gaq.push(['_setCustomVar', 1, 'LogMissing', 1, 3]);
+
var _gaq = _gaq || [];
_gaq.push(['_trackEvent', 'WikiEvents', 'MissingPage']);
+
_gaq.push(['_setAccount', 'UA-36307748-1']);
  
 +
_gaq.push(['_trackEvent', 'WikiError', 'MissingPage', 'page: ' + document.location.pathname + document.location.search + ' ref: ' + document.referrer ]);
 +
 +
_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);
 +
})();
  
 
</script>
 
</script>
 
</includeonly>
 
</includeonly>

Latest revision as of 16:19, 23 January 2013