MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<link rel="alternate" hreflang="en" href="https://mintarc.com/minthome/index.php?title=Welcome_to_mintarc" /> | /** | ||
* Add Language Alternate Tags for SEO | |||
*/ | |||
$(document).ready(function() { | |||
// English link | |||
$('head').append('<link rel="alternate" hreflang="en" href="https://mintarc.com/minthome/index.php?title=Welcome_to_mintarc" />'); | |||
<link rel="alternate" hreflang="ja" href="https://mintarc.com/minthome/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" /> | // Japanese link | ||
$('head').append('<link rel="alternate" hreflang="ja" href="https://mintarc.com/minthome/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" />'); | |||
// X-Default (tells Google which one to use if no language matches) | |||
$('head').append('<link rel="alternate" hreflang="x-default" href="https://mintarc.com/minthome/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" />'); | |||
}); | |||
/** | |||
* Mautic Tracker | |||
*/ | |||
(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://matomo.mintarc.com/mautic/mtc.js','mt'); | |||
mt('send', 'pageview'); | |||
Latest revision as of 02:51, 21 April 2026
/**
* Add Language Alternate Tags for SEO
*/
$(document).ready(function() {
// English link
$('head').append('<link rel="alternate" hreflang="en" href="https://mintarc.com/minthome/index.php?title=Welcome_to_mintarc" />');
// Japanese link
$('head').append('<link rel="alternate" hreflang="ja" href="https://mintarc.com/minthome/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" />');
// X-Default (tells Google which one to use if no language matches)
$('head').append('<link rel="alternate" hreflang="x-default" href="https://mintarc.com/minthome/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" />');
});
/**
* Mautic Tracker
*/
(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://matomo.mintarc.com/mautic/mtc.js','mt');
mt('send', 'pageview');