HubSpot A/B testing
HubSpot includes page A/B testing on some higher-tier plans. If yours doesn't, or you want AI-written variants and GA4 reporting, add AB Splits to your site header and test any HubSpot page.
Free plan · 1,000 visitors / month · no card
Set up in 4 steps
- 01In HubSpot settings, open the Pages settings for your website.
- 02Paste the snippet into Site header HTML for the domain you want to test, then save.
- 03Click Check install in AB Splits.
- 04Set the goal to a HubSpot form submission or a thank-you page view.
Pages settings → Site header HTML
<script src="https://absplits.com/s.js" data-key="YOUR_SITE_KEY"></script>Your real site key is shown in the dashboard after you add your site.
- HubSpot's menus change from time to time. If you can't find Site header HTML, search HubSpot settings for "header HTML".
What to test on HubSpot CMS
All 56 examples →Cut the form to the fields you actually use
Make the lead magnet title specific
Offer a lower-commitment step than 'Book a demo'
Lead with the outcome, not the product category
Feature a one-line case study in the hero
Split a long form into steps
AI writes variants
Choose a headline or button and AI reads your real page to write 3–5 alternatives, each with its reasoning.
Honest stats
Chance to beat the original, 95% intervals, and a plain keep-running or stop verdict. No p-value guesswork.
Results in GA4
Every tested visitor is tagged in GA4, so any report can be split by variant.
Questions
Does HubSpot have A/B testing built in?+
HubSpot offers A/B testing for pages on some Professional and Enterprise plans. AB Splits works on any HubSpot plan that lets you add header HTML, and adds AI-written variants and a Bayesian verdict.
Can I measure HubSpot form submissions?+
Yes. Use the form's submit button as a click goal, or send visitors to a thank-you page and use a page-view goal.
Will A/B testing hurt my SEO?+
No, not when it's done properly. AB Splits shows each human visitor one version, and search bots and crawlers always see your original page. Tests on separate URLs keep your canonical tags, so ranking signals stay on the original page. End tests when you have a result and ship the winner.
A/B testing on other platforms