From 92190aa00659effa4b737eb5411494bd75a2615c Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 27 Jan 2024 17:52:40 +0100 Subject: [PATCH] fix: correct import of umami script --- docs/.vuepress/head.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/.vuepress/head.ts b/docs/.vuepress/head.ts index a3cd6ec..23d3e0f 100644 --- a/docs/.vuepress/head.ts +++ b/docs/.vuepress/head.ts @@ -3,14 +3,18 @@ interface SimplifiedHeader { content: [any]; } -const matomoTrackingCode = ``; - const simplifiedHead = [ + { + tag: 'script', + content: [ + { + async: true, + src: 'https://umami.phundrak.com/script.js', + 'data-website-id': '67166941-8c83-4a19-bc8c-139e44b7f7aa', + 'data-do-not-track': 'true', + }, + ], + }, { tag: 'meta', content: [ @@ -136,6 +140,5 @@ head.push([ { rel: 'me', href: 'https://mastodon.phundrak.com/@phundrak' }, 'Mastodon', ]); -head.push(['script', {}, matomoTrackingCode]); export default head;