Enable Analytics

Add your analytics keys to mint.json. Here’s the basic syntax:

{
  "analytics": {
    "ga4": {
      "measurementId": "G-XXXXXXX" 
    },
    "amplitude": {
      "apiKey": "xxx"
    },
    "mixpanel": {
      "projectToken": "xxx" 
    }
  }
}

Additional supported platforms include:

  • Plausible
  • PostHog
  • HotJar
  • Fathom
  • Google Tag Manager
  • LogRocket
  • Clearbit
  • Pirsch
  • Koala
  • Heap
  • Segment

Visit the individual integration pages to learn more about configuring each analytics platform.

Was this page helpful?