Difference between revisions of "Widget:LogMissing"

From Computational Memory Lab
Jump to: navigation, search
 
Line 5: Line 5:
 
_gaq.push(['_setAccount', 'UA-36307748-1']);
 
_gaq.push(['_setAccount', 'UA-36307748-1']);
  
  _gaq.push(['_trackEvent', 'WikiError', 'MissingPage1', '<!--{$pagename|escape:'quotes'}-->']);
+
  _gaq.push(['_trackEvent', 'WikiError', 'MissingPage', 'page: ' + document.location.pathname + document.location.search + ' ref: ' + document.referrer ]);
_gaq.push(['_trackEvent', 'WikiError', 'MissingPage2', 'page: ' + document.location.pathname + document.location.search + ' ref: ' + document.referrer ]);
+
  
 
_gaq.push(['_trackPageview']);
 
_gaq.push(['_trackPageview']);

Latest revision as of 16:19, 23 January 2013