Skip to content

Commit

Permalink
feat: add umami tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlatz committed Jan 17, 2025
1 parent c401f35 commit 6e099cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 : "/",
Expand All @@ -34,6 +34,7 @@ export default defineConfig({
],
}),
mdx(),
umami({id :'984d1210-a376-4349-aa2f-83fab030a249' })
],
markdown: {
remarkPlugins: [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6e099cf

Please sign in to comment.