Creator

Analytics

How to set up analytics tracking with Google Analytics, Plausible, or a custom script.

Analytics is configured in config/app.config.ts. Leave the provider empty to disable analytics.

analytics: {
  provider: "",   // "google-analytics" | "plausible" | "custom" | ""
  id: "",         // GA4 ID or Plausible domain
  src: "",        // Script URL for "custom" provider only
},

Analytics scripts are only loaded after the user accepts cookies. The Analytics component in components/shared/analytics.tsx checks for a cookie_consent cookie before rendering any scripts.

Providers

Google Analytics

analytics: {
  provider: "google-analytics",
  id: "G-XXXXXXXXXX",
},

Plausible

analytics: {
  provider: "plausible",
  id: "yourdomain.com",
},

Custom script

analytics: {
  provider: "custom",
  src: "https://analytics.example.com/script.js",
},

No environment variables are required — everything is configured in config/app.config.ts.

On this page

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.