Skip to content

Commit 0219f6d

Browse files
feat: add plausible analytics module
1 parent 4a99196 commit 0219f6d

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

nuxt.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ export default defineNuxtConfig({
1818
"@nuxtjs/tailwindcss",
1919
"@nuxtjs/color-mode",
2020
"nuxt-svgo",
21+
"@nuxtjs/plausible",
2122
"@nuxtjs/sitemap",
2223
"@nuxtjs/robots",
2324
"@nuxt/content",
2425
],
26+
plausible: {
27+
ignoredHostnames: ["localhost"],
28+
},
2529
svgo: {
2630
svgo: false,
2731
defaultImport: "component",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@fontsource/inter": "^5.1.1",
1414
"@nuxt/content": "^3.0.0",
1515
"@nuxtjs/color-mode": "3.5.2",
16+
"@nuxtjs/plausible": "1.2.0",
1617
"@nuxtjs/robots": "^5.2.2",
1718
"@nuxtjs/sitemap": "^7.2.4",
1819
"@nuxtjs/tailwindcss": "6.13.1",

yarn.lock

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,11 @@
288288
"@babel/helper-string-parser" "^7.25.9"
289289
"@babel/helper-validator-identifier" "^7.25.9"
290290

291+
"@barbapapazes/plausible-tracker@^0.5.6":
292+
version "0.5.6"
293+
resolved "https://registry.yarnpkg.com/@barbapapazes/plausible-tracker/-/plausible-tracker-0.5.6.tgz#36c2cf3354326282b9a3315538dbec2744acb997"
294+
integrity sha512-GRZxn3ZngYQ1+QbdP8d66D/lQg+T2oEevG8kBGfNwVbt9VZB67sgMx/gkRo/Ww2lH7QelgjUNzvOeG+DsJX2HQ==
295+
291296
"@clack/core@0.4.1":
292297
version "0.4.1"
293298
resolved "https://registry.yarnpkg.com/@clack/core/-/core-0.4.1.tgz#36c8aed3f4904060a39275817e804e7a8ffb7e1c"
@@ -1142,7 +1147,7 @@
11421147
unimport "^3.14.6"
11431148
untyped "^1.5.2"
11441149

1145-
"@nuxt/kit@^3.15.3", "@nuxt/kit@^3.15.4", "@nuxt/kit@^3.4.0":
1150+
"@nuxt/kit@^3.14.1592", "@nuxt/kit@^3.15.3", "@nuxt/kit@^3.15.4", "@nuxt/kit@^3.4.0":
11461151
version "3.15.4"
11471152
resolved "https://registry.yarnpkg.com/@nuxt/kit/-/kit-3.15.4.tgz#122f511e518573320a035b5e24adf0118d51485d"
11481153
integrity sha512-dr7I7eZOoRLl4uxdxeL2dQsH0OrbEiVPIyBHnBpA4co24CBnoJoF+JINuP9l3PAM3IhUzc5JIVq3/YY3lEc3Hw==
@@ -1301,6 +1306,16 @@
13011306
unwasm "^0.3.9"
13021307
vfile "^6.0.3"
13031308

1309+
"@nuxtjs/plausible@1.2.0":
1310+
version "1.2.0"
1311+
resolved "https://registry.yarnpkg.com/@nuxtjs/plausible/-/plausible-1.2.0.tgz#0b7fc89308619ea1b520d5f40ed426ff2303153e"
1312+
integrity sha512-pjfps32fFN77BhjqHmq2Jx4XCNso9TcYnB+S4IR2qH/c26WDfYB5mQxN5pOEiWRlMkiKq+Y45mBBFtSOVKClCA==
1313+
dependencies:
1314+
"@barbapapazes/plausible-tracker" "^0.5.6"
1315+
"@nuxt/kit" "^3.14.1592"
1316+
defu "^6.1.4"
1317+
ufo "^1.5.4"
1318+
13041319
"@nuxtjs/robots@^5.2.2":
13051320
version "5.2.2"
13061321
resolved "https://registry.yarnpkg.com/@nuxtjs/robots/-/robots-5.2.2.tgz#b80eed4e464fd4a61ab1a641c6caf268b5b06efc"

0 commit comments

Comments
 (0)