← Back to docs
Amplitude setup
Ship product analytics in under 5 minutes with Meridian's first-class Amplitude integration.
1. Get your API key
Log into Amplitude, navigate to Settings → Projects, select your project, and copy the API key from the General tab.
2. Set the environment variable
Add the key to your Meridian environment. In production, use your hosting platform's secrets manager.
AMPLITUDE_API_KEY=abc123-your-key-here3. Initialize the SDK
Meridian auto-injects the Amplitude browser SDK when the env var is present. No manual init required. Events flow automatically from every page view, license check, and upgrade flow.
4. Verify events
Open the Amplitude dashboard and check the live event stream. You should see Page Viewed, License Activated, and funnel events within 30 seconds of a page load.
Need custom events? See the Events API reference.