MediaWiki:Common.js: Unterschied zwischen den Versionen
Peter (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Peter (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 9: | Zeile 9: | ||
/* End of Statcounter Code */ | /* End of Statcounter Code */ | ||
/* GA4 */ | |||
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
| Zeile 19: | Zeile 20: | ||
gtag('js', new Date()); | gtag('js', new Date()); | ||
gtag('config', 'G-398408700'); | gtag('config', 'G-398408700'); | ||
/* adsense */ | |||
mw.loader.load( '//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js' ); | |||
$( document ).ready( function() { | |||
var adsenseCode = '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9316016680305616" crossorigin="anonymous"></script>'; | |||
$( 'body' ).append( adsenseCode ); | |||
} ); | |||