Connect Stripe to Seline for revenue analytics

Track your Stripe revenue alongside your website analytics. See MRR trends, attribute payments to traffic sources, and view customer payment history on visitor profiles.

Connect your Stripe account to:

  • Get a revenue chart at your dashboard.
  • See which referrers and UTMs bring you the most revenue - revenue attribution.
Stripe revenue chart showing MRR trends in Seline analytics dashboard
Stripe revenue chart in Seline dashboard.

Revenue attribution only works if you pass customer emails via profiles. Revenue chart is displayed regardless of whether you pass emails or not.

  • If you use profiles, visitors with email property will get their subscriptions and payments pulled and displayed at their profiles.
Visitor profile showing Stripe subscriptions and payment history
Visitor profile with Stripe payment data.

How to connect Stripe

Step 1: Create a read-only Stripe API key

  1. Go to your Stripe dashboard.
  2. Set all the permissions to Read and create the key. You can set Read to just the All core resources and All Billing resources, because that's what we currently use, but setting Read to everything will ensure we have permissions for our future features.
Stripe restricted API key creation with read-only permissions
Creating a restricted Stripe API key.

Step 2: Add the API key to Seline

  1. Go to your Seline integrations page.
  2. Paste your Stripe API key into the input field
  3. Select a single currency you want all charges converted to. This setting is mainly for multi-currency accounts. If you use a single currency in Stripe, we recommend selecting it.
Seline integrations page with Stripe API key field and currency selector
Adding Stripe API key in Seline settings.

That's it. Wait a couple minutes, and you'll see your revenue data synced with Seline.

Developers

Only having an API key, we can't listen to webhooks. Instead, we attempt to pull the data from Stripe every minute.

  1. We pull all Charges since the last successful pull and save them as events.
  2. When opening a visitor profile that has an email, we try to send a request to Stripe API to find a Customer with that email and pull their last 3 subscriptions and last 3 payments. This is later displayed on the right side at their profile. We don't save this data, but pull it every time you open a profile.