]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: add fathom analytics
authorEduardo San Martin Morote <posva13@gmail.com>
Sun, 10 Sep 2023 09:34:18 +0000 (11:34 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Sun, 10 Sep 2023 09:34:18 +0000 (11:34 +0200)
packages/docs/.vitepress/config/shared.ts

index d0fefa8bbbba7dcf23de40a03c24a29069dd901b..959fb0bfe32a8f0a2f1b8cf85fca965eaee9d13d 100644 (file)
@@ -8,17 +8,7 @@ if (process.env.NETLIFY) {
   console.log('Netlify build', process.env.CONTEXT)
 }
 
-const productionHead: HeadConfig[] = [
-  // NOTE: removed because there is a bug that makes it load forever
-  // [
-  //   'script',
-  //   {
-  //     src: 'https://unpkg.com/thesemetrics@latest',
-  //     async: '',
-  //     type: 'text/javascript',
-  //   },
-  // ],
-]
+const productionHead: HeadConfig[] = []
 
 const rControl = /[\u0000-\u001f]/g
 const rSpecial = /[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'“”‘’<>,.?/]+/g
@@ -91,6 +81,16 @@ export const sharedConfig = defineConfig({
       },
     ],
 
+    [
+      'script',
+      {
+        src: 'https://cdn.usefathom.com/script.js',
+        'data-site': 'KFPPRRIS',
+        'data-spa': 'auto',
+        defer: '',
+      },
+    ],
+
     // Vue School Top banner
     [
       'script',