Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
Content deleted Content added
Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: (function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[]; p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments) };p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1; n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","https://upcomer.com/plow.lite.js","snowplow")); window.snowplow('newTr..."
 
No edit summary
 
Line 6: Line 6:
window.snowplow('trackPageView');
window.snowplow('trackPageView');
window.snowplow('enableActivityTracking', { minimumVisitLength: 5, heartbeatDelay: 10 });
window.snowplow('enableActivityTracking', { minimumVisitLength: 5, heartbeatDelay: 10 });

(function() {
var script = document.createElement('script');
script.async = true;
script.src = 'https://www.googletagmanager.com/gtag/js?id=G-415VLTZSTD';
document.head.appendChild(script);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-415VLTZSTD');
})();

Latest revision as of 01:59, 26 March 2025

/* Any JavaScript here will be loaded for all users on every page load. */

(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[]; p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments) };p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1; n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","https://upcomer.com/plow.lite.js","snowplow"));

window.snowplow('newTracker', 'sp1', 'https://spc.progameguides.com/', { appId: 'progameguides-web' });
window.snowplow('trackPageView');
window.snowplow('enableActivityTracking', { minimumVisitLength: 5, heartbeatDelay: 10 });

(function() {
	var script = document.createElement('script');
	script.async = true;
	script.src = 'https://www.googletagmanager.com/gtag/js?id=G-415VLTZSTD';
	document.head.appendChild(script);
	window.dataLayer = window.dataLayer || [];
	function gtag(){dataLayer.push(arguments);}
	gtag('js', new Date());
	gtag('config', 'G-415VLTZSTD');
})();
Cookies help us deliver our services. By using our services, you agree to our use of cookies. We only use cookie to make the site function and save your preferences, nothing else.