From 6e099cf5773233114b0dc0268af695aaac80894a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Latzarus?= Date: Fri, 17 Jan 2025 23:39:09 +0100 Subject: [PATCH] feat: add umami tracker --- astro.config.mjs | 5 +++-- package.json | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index ba363c6..fb2c820 100755 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,12 +3,12 @@ import react from "@astrojs/react"; import sitemap from "@astrojs/sitemap"; import tailwind from "@astrojs/tailwind"; import AutoImport from "astro-auto-import"; -import { defineConfig } from "astro/config"; +import {defineConfig} from "astro/config"; import remarkCollapse from "remark-collapse"; import remarkToc from "remark-toc"; import config from "./src/config/config.json"; +import umami from "@yeskunall/astro-umami"; -// https://astro.build/config export default defineConfig({ site: config.site.base_url ? config.site.base_url : "http://examplesite.com", base: config.site.base_path ? config.site.base_path : "/", @@ -34,6 +34,7 @@ export default defineConfig({ ], }), mdx(), + umami({id :'984d1210-a376-4349-aa2f-83fab030a249' }) ], markdown: { remarkPlugins: [ diff --git a/package.json b/package.json index 73c4b9d..76f9932 100755 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@astrojs/rss": "^4.0.11", "@astrojs/sitemap": "^3.2.1", "@astrojs/tailwind": "^5.1.2", + "@yeskunall/astro-umami": "^0.0.3", "astro": "^4.16.9", "astro-auto-import": "^0.4.4", "astro-font": "^0.1.81",