Difference between revisions of "Widget:LogMissing"

From Computational Memory Lab
Jump to: navigation, search
 
(13 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<script type="text/javascript">
 
<script type="text/javascript">
  
  var _gaq = _gaq || [];
+
var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36307748-1']);
+
_gaq.push(['_setAccount', 'UA-36307748-1']);
_gaq.push(['_trackEvent',
+
      'WikiEvents', // category of activity
+
      'MissingPage', // Action
+
  _gaq.push(['_trackPageview']);
+
  
  (function() {
+
_gaq.push(['_trackEvent', 'WikiError', 'MissingPage', 'page: ' + document.location.pathname + document.location.search + ' ref: ' + document.referrer ]);
    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';
+
_gaq.push(['_trackPageview']);
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+
(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