beehiiv – Revenue Tracking & Split Testing
Track beehiiv subscription revenue in Humblytics and run split tests across your subscription plans to find out which pricing page, copy, or offer converts best.
Prerequisites
1 · Install Humblytics via Google Tag Manager
beehiiv does not allow arbitrary script injection, so you must use Google Tag Manager to load Humblytics on your publication. Follow the Google Tag Manager install guide first and confirm your Humblytics tag is verified before continuing.
2 · Connect Stripe in Humblytics
beehiiv processes paid subscriptions through Stripe. Humblytics ties revenue events back to individual visitors by matching the customer email collected on your site against the email in the Stripe charge.
In Humblytics, go to Connectors in the sidebar
Click Stripe and follow the connection flow
Once connected, Stripe purchases will automatically fire
revenueevents in Humblytics for any visitor whose email was captured during their session
Step 1 · Add the Email Capture Tag in GTM
beehiiv collects subscriber emails on your publication's subscribe page. The snippet below intercepts that email — from the URL, from localStorage, or from the subscribe form — and passes it to Humblytics so the session can be matched to a Stripe purchase later.
In Google Tag Manager:
Click New Tag
Rename it to: Humblytics – beehiiv Email Capture
Click Tag Configuration → Custom HTML
Paste the script exactly as written below:
Click Triggering → select All Pages
Click Save
Publish your GTM container
Do not modify this script. The selectors and localStorage keys are tuned specifically for beehiiv's subscribe flow. Changing them may break email capture.
Step 2 · Verify Revenue Is Being Tracked
Before setting up a split test, confirm the full pipeline is working:
Open your beehiiv publication in a private/incognito window
Subscribe using a real email address
Complete the Stripe checkout
In Humblytics, go to Attribution — within a few minutes you should see a revenue event attributed to the session from that email
If no revenue event appears after 10 minutes, double-check that:
Your Stripe connector is connected in Humblytics (Connectors → Stripe)
The GTM container is published (not just saved)
The Humblytics base tag fires on the subscribe page (check with GTM Preview mode)
Step 3 · Create a Split Test Across Subscription Plans
With revenue tracking confirmed, you can now run a split test to determine which pricing page or subscription plan converts better.
Set up your variants in beehiiv
Create separate subscribe pages for each plan you want to test — for example, a monthly plan page and an annual plan page. Each page needs its own distinct URL.
Create the experiment in Humblytics
Go to Experiments → New Test
Test name – something descriptive, e.g.
Monthly vs Annual Plan PagePages to test – add the URL of your primary subscribe page (the control)
Variants – add one variant per plan page URL, set each to redirect to that page's URL
Traffic split – distribute evenly across variants (e.g. 50/50)
Goal – select Increase Revenue
Enable Non-overlapping mode so each visitor only ever sees one variant
The Revenue goal does not require a destination page URL. Humblytics counts a conversion whenever a revenue event fires in a visitor's session — which happens automatically when their Stripe purchase is matched to their tracked email.
Click Launch Test
How It Works End-to-End
A visitor lands on your subscribe page — Humblytics assigns them to a variant and redirects them to the corresponding plan page
The visitor enters their email — the GTM tag captures it and calls
Humblytics.trackCustomer(email)The visitor completes checkout on Stripe
Stripe sends a webhook to Humblytics; Humblytics matches the purchase email to the tracked session
A
revenueevent is recorded for that session and attributed to the variant the visitor sawHumblytics tallies revenue per variant and runs statistical significance analysis
You can monitor results in Experiments → [your test] → Results.
Last updated