Difference between revisions of "Widget:LogMissing"

From Computational Memory Lab
Jump to: navigation, search
(Created page with "<includeonly> <script> _gaq.push(['_trackEvent', 'WikiEvents', // category of activity 'MissingPage', // Action ]); </script> </includeonly>")
 
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<script>
+
<script type="text/javascript">
  _gaq.push(['_trackEvent',
+
 
      'WikiEvents', // category of activity
+
var _gaq = _gaq || [];
      'MissingPage', // Action
+
_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