Get Your Stripe Secret Key
- Log in to your Stripe Dashboard
- Click Developers in the top navigation
- Select API keys
- Under Standard keys, find your Secret key
- Click Reveal test key or use your Live mode key
- Copy the secret key (starts with
sk_)
Security Note: Never share your secret key publicly or commit it to code repositories. This key provides read access to your payment data.
Add UTM Tracking to Stripe Metadata
To track which payments came from email campaigns, add UTM parameters to Stripe payment metadata:
// When creating a payment or checkout session
metadata: {
utm_campaign: 'summer-sale-2026',
utm_source: 'mailchimp',
utm_medium: 'email'
}Email Calculator will read these metadata fields to match payments with your campaigns.
Connect to Email Calculator
Pro or Agency plan required. Stripe integration is available on Pro and Agency accounts. View pricing
- Go to your Email Calculator Settings
- Find API Integrations
- Select ROI as integration type
- Choose Stripe
- Paste your Secret Key
- Click Connect Platform
Track Campaign ROI
Once connected, Email Calculator will automatically sync your Stripe payments and match them to your email campaigns.
View ROI metrics in your campaign reports showing revenue generated from each email.