Stripe Payment Links
Step 1: Connect Stripe to Humblytics
Before you can track revenue with Stripe Payment Links, you need to connect your Stripe account to Humblytics:
Go to your Humblytics dashboard and navigate to Site Settings
Click on the Revenue tab to access revenue tracking settings
Select Stripe as your payment provider
Choose "Payment Links" as your integration method
Enter your Stripe Secret Key (found in your Stripe Dashboard)
Save the configuration to connect your Stripe account
Your Stripe Secret Key will be encrypted and stored securely. Never share your secret key publicly.
Step 2: Configure Payment Links
Once your Stripe account is connected, configure your Stripe Payment Links:
In your Stripe Payment Links, select a product and go to the "After Payment" tab.
For "Confirmation page", choose to redirect customers to your website and add ?stripe_session_id={CHECKOUT_SESSION_ID}
to the URL.
Humblytics will automatically look for the stripe_session_id
in the URL and track the payment.
Important Notes
Duplicate payment events are ignored so you don't need to worry about multiple redirects
Works best when customers complete the purchase journey on the same device/browser
No additional code required - just configure the redirect URL
After receiving a successful payment, you should see revenue data in your dashboard (referrer, country, browser, etc.). If you don't, please contact us at [email protected].
Key Benefits
Zero code required
Just configure the redirect URL in Stripe
Automatic tracking
Revenue automatically attributed to visitor data
Privacy-compliant
Cookie-free tracking, no consent banners
Split test ready
Use revenue as conversion goals in A/B tests
Setting Up Split Tests with Revenue Goals
Create a split test on your main website
Choose Revenue as your goal type
Set your target revenue amount or use "Any Revenue" for all purchases
Launch your test - revenue will be automatically tracked
Troubleshooting
No revenue data appearing? Check that your Stripe account is properly connected
Missing attribution? Verify the session_id is being passed in the redirect URL
Need help? Contact [email protected] for assistance
Last updated
Was this helpful?