Quickstart

Undercurrent Analytics is a platform that allows you to completely delegate product analytics to an AI agent. You can also delegate setup.

  1. Register and receive your onboarding credentials file.
  2. Move your onboarding credentials JSON file into your repo and add it to .gitignore.
  3. Ask your AI harness to set up the analytics client library so that your app sends events to https://ingest.undercurrentanalytics.dev.
  4. Ask your AI harness to create dashboards to visualize user activation, retention, and specific engagement metrics, so you can view them at grafana.undercurrentanalytics.dev.

1. Register and receive your onboarding credentials file

Register by entering your email at https://undercurrentanalytics.dev/#get-access. We’ll then send you an email with an attached JSON credentials file. The file contains the following:

  • Your non-secret project token, which is a string that identifies events sent by your app.
  • Your secret Grafana sign-in credentials, which let you log into the Grafana service at grafana.undercurrentanalytics.dev.
  • A secret Grafana service account token, which permits write-access to your Grafana dashboards.

2. Move the onboarding credentials to your app repo

mv ~/Downloads/undercurrent-analytics-*.json /path/to/your/app/repo
echo 'undercurrent-analytics-*.json' >> .gitignore
git add .gitignore
git commit -m "Ignore Undercurrent Analytics credentials file" .gitignore

Note: Keep your onboarding credentials file a secret. You can change the Grafana-related credentials within Grafana. You get your own Grafana organization, so you control the credentials within it.

3. Ask your AI harness to set up the analytics client library

Undercurrent’s ingest is wire-compatible with Mixpanel, so you set up event tracking by adding the Mixpanel client library to your project and pointing it at Undercurrent’s event ingest endpoint, https://ingest.undercurrentanalytics.dev.

You can delegate this set up to your AI harness using this prompt:

In essence, this involves the following steps:

  1. Installing the Mixpanel client library by following the official guide for your platform: Install Mixpanel → Code.
  2. Initializing the client with these two overridden values: (1) Server URL: https://ingest.undercurrentanalytics.dev (2) Project token: The project token in your onboarding credentials file.

When you’re done with this step, your app codebase should:

  • Have a dependency on the Mixpanel client library for your platform (iOS, Android, React Native, or Flutter).
  • Initialise Mixpanel using your project token and with serverURL set to https://ingest.undercurrentanalytics.dev.
  • Identify each user with a stable distinct ID.
  • Use the Mixpanel library to send analytics events for the interactions you care about.

4. Ask your AI harness to create the dashboards

With events flowing in, the next step is to turn them into dashboards that reveal the metrics that matter for your app. Typically, these are related to activation, engagement, and retention.

While it is perfectly possible for you to build Grafana dashboards and write the supporting SQL queries yourself (people have been using Grafana this way for years), this is something you can very effectively delegate to an AI coding harness such as Claude Code using a frontier model.

Provide these details:

  • Grafana URL: https://grafana.undercurrentanalytics.dev
  • Service account token: The service account token from your onboarding credentials file.

Logging into Grafana to view the dashboards

Go to grafana.undercurrentanalytics.dev and sign in with the username and password from your onboarding email. From there you can browse any dashboards your harness has created, tweak panels, or build new ones directly.

When you’ve completed the steps in this quickstart guide, you should have:

  • Your app sending events to Undercurrent about how users are interacting with
  • Detailed Grafana dashboards that show you how your app is being used

← Back to undercurrentanalytics.dev