No edit summary
Tag: Reverted
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
var _paq = window._paq || [];
/**
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
* Add Language Alternate Tags for SEO
_paq.push(['trackPageView']);
*/
_paq.push(['enableLinkTracking']);
$(document).ready(function() {
(function() {
     // English link
     var u="https://matomo.mintarc.com/matomo/";
    $('head').append('<link rel="alternate" hreflang="en" href="https://mintarc.com/minthome/index.php?title=Welcome_to_mintarc" />');
     _paq.push(['setTrackerUrl', u+'matomo.php']);
 
     _paq.push(['setSiteId', '3']); // Replace '3' with your actual site ID
     // Japanese link
     var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    $('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" />');
    g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
      
})();
    // 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');


$(document).ready(function() {
mt('send', 'pageview');
    var imageUrl = 'https://mintarc.com/img/logo_with_name.png'; // URL of your image
    var imgElement = $('<img>').attr('src', imageUrl).css({
        'display': 'block',           // Ensure it's a block-level element
        'margin': '0 auto',            // Center horizontally
        'max-width': '200px',          // Adjust as needed
        'max-height': '50px'            // Adjust as needed
    });
  $('.skin-minerva .header-chrome').append(imgElement);
});

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');