Quick Start

To enable analytics, add your integration keys to mint.json. You can add multiple analytics platforms simultaneously.

mint.json
{
  "analytics": {
    "ga4": {
      "measurementId": "G-XXXXXXX"  // Google Analytics 4
    },
    "posthog": {
      "apiKey": "phc_xxxxxxxxxxxxxxxx",
      "apiHost": "https://app.posthog.com"  // Optional
    },
    "amplitude": {
      "apiKey": "xxxxxxxxxxxxxxxx"
    },
    "mixpanel": {
      "projectToken": "xxxxxxxxxxxxxxxx" 
    }
  }
}

For detailed setup instructions, click on any of the integrations above.

Was this page helpful?