From 5b6977aff8e97b254ae75f012a7c8b3537132a15 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Thu, 3 Dec 2026 08:48:08 -0500 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=20MTM=20=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/config.mts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 9784bc3..a876353 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -82,6 +82,14 @@ export default defineConfig({ f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-W3NL9V');`], // End Google Tag Manager + // Matomo Tag Manager + ['script', {}, `var _mtm = window._mtm = window._mtm || []; + _mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'}); + (function() { + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.async=true; g.src='https://analytics.sharkdat.com/js/container_yMtZdGlf.js'; s.parentNode.insertBefore(g,s); + })();`], + // End Matomo Tag Manager // Google AdSense ['script', { async: '', -- 2.54.0