Syncing your Stripe data with Seline
Why not see your revenue data at the same place where you see your website analytics? Connect your Stripe account with Seline to:
- Get a Revenue chart at your dashboard.
- See which referrers and UTMs bring you the most revenue.
- If you use profiles, visitors with email property will get their subscriptions and payments pulled and displayed.
How to connect Stripe
Step 1: Create a read-only Stripe API key
- Go to your Stripe dashboard.
- 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.
Step 2: Add the API key to Seline
- Go to your Seline integrations page.
- Paste your Stripe API key into the input field
- 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.
That's it. Wait a coupe 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.
- We pull all Charges since the last successful pull and save them as events.
- 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.