JSPM

@yeskunall/astro-umami

0.0.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 620
  • Score
    100M100P100Q109687F
  • License MIT

Add Umami Analytics to your Astro website

Package Exports

  • @yeskunall/astro-umami

Readme

astro-umami

An Astro integration to add Umami Analytics to your website.

E2E tests license npm version monthly downloads

πŸͺΆ Highlights

  • Automatically detects if you’re using View Transitions and adds a data-astro-rerun attribute
  • Disables events and pageviews during development
  • Supports all configuration options, unlike astro-analytics
  • Provides inline documentation for all configuration options (thanks to TypeScript)
  • (Optionally) Serve the tracking script using Partytown (v0.0.5 onwards)
  • Actively maintained
  • Zero dependencies

πŸ› Usage

Install

Run the following from your project directory and follow the prompts:

pnpm astro add @yeskunall/astro-umami@0.0.7

This will install and make the appropriate changes to your Astro config automatically.

Manual install

  1. Install the required dependencies
pnpm add @yeskunall/astro-umami@0.0.7
  1. Add the integration to your Astro config:
+ import umami from "@yeskunall/astro-umami";

export default defineConfig({
  integrations: [
+    umami({ id: "94db1cb1-74f4-4a40-ad6c-962362670409" }),
  ],
});
πŸ“– For all configurable options, see the interface.

lume-umami - Lume plugin to add Umami Analytics to your website


βš–οΈ License

MIT Β© Kunall Banerjee