Skip to content

Commit 336b534

Browse files
committed
docs: add plausible tracker
1 parent adea203 commit 336b534

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

docs/.vitepress/config.mts

+12-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@ import { defineConfig } from "vitepress";
44
export default defineConfig({
55
title: "DOM-Preview",
66
description: "A tool for visualizing your component tests",
7-
head: [["link", { rel: "icon", href: "/favicon.svg" }]],
7+
head: [
8+
["link", { rel: "icon", href: "/favicon.svg" }],
9+
[
10+
"script",
11+
{
12+
defer: true,
13+
"data-domain": "dom-preview.knappi.org",
14+
src: "https://plausible.io/js/script.js",
15+
},
16+
],
17+
],
818
themeConfig: {
919
logo: "/images/logo.svg",
1020
// https://vitepress.dev/reference/default-theme-config
@@ -26,9 +36,7 @@ export default defineConfig({
2636
},
2737
{
2838
text: "Impress",
29-
items: [
30-
{ text: "Impress", link: "/impress" },
31-
],
39+
items: [{ text: "Impress", link: "/impress" }],
3240
},
3341
],
3442

docs/impress.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This page does not use cookies to track visitors. I use <a href="https://plausib
2020
Plausible does not use cookies und and does not collect personal data.
2121

2222
- <a href="https://plausible.io/privacy-focused-web-analytics">Blog post</a> about privacy guidelines of Plausible.io
23-
- <a href="https://plausible.io/aikido-exam.knappi.org/">The public tracking dashboard</a> shows the collected data.
23+
- <a href="https://plausible.io/dom-preview.knappi.org/">The public tracking dashboard</a> shows the collected data.
2424

2525
# GitHub Pages Service
2626

0 commit comments

Comments
 (0)