Difference between revisions of "MediaWiki:Common.js"
From MintHCM Wiki
m |
m |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
+ | |||
+ | /* Mautic */ | ||
(function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n; | (function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n; | ||
w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t), | w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t), | ||
Line 6: | Line 8: | ||
mt('send', 'pageview'); | mt('send', 'pageview'); | ||
+ | |||
+ | /* Google Analytics */ | ||
+ | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
+ | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
+ | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
+ | })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||
+ | |||
+ | ga('create', 'UA-11726334-27', 'auto'); | ||
+ | ga('send', 'pageview'); |
Latest revision as of 14:55, 21 February 2020
/* Any JavaScript here will be loaded for all users on every page load. */
/* Mautic */
(function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n;
w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t),
m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://ma.minthcm.cloud/mtc.js','mt');
mt('send', 'pageview');
/* Google Analytics */
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-11726334-27', 'auto');
ga('send', 'pageview');