A/B test URL generator
Build one tagged URL per variant of a test. The variants share source, medium and campaign, and each gets its own utm_content.
control
https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=pricing_test&utm_content=control
annual_first
https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=pricing_test&utm_content=annual_first
An A/B test that sends both variants to the same page needs the links to be identical except for the thing you are testing. This generator writes one URL per variant. They share utm_source, utm_medium and utm_campaign. The variant name becomes utm_content.
How do you read the links for each variant?
In analytics, filter to the campaign and split by content. The two rows are the two variants, and the rest of the tagging cannot drift because it was written once. Values are lowercased so Control and control are not two tests.
The page both links open should be the same unless the test is the page itself. For the statistics once the numbers are in, use the A/B test significance calculator.
Terms used here
Guides
- The best marketing and revenue attribution tools for SaaS and indie makersTwelve marketing attribution tools that tie payments to traffic sources, compared by payment providers read, price and limits. For SaaS and indie makers.
- What is direct traffic in Google Analytics, and how do you shrink it?Direct traffic in GA4 is sessions with no referrer, no UTM tags and no ad click ID. What ends up there, how GA4 credits it, and how to shrink it.
- How to check website traffic: your own site and anyone else'sCheck your own traffic with analytics, Search Console or server logs; estimate other sites with Similarweb, Semrush or Ahrefs, and why the numbers disagree.
More free tools
All free tools- Campaign naming generatorGet a campaign name in one shape: date, channel, offer and audience, cleaned as you type.
- Campaign brief generatorTurn the goal, audience, offer and dates into a one-page brief your team can follow.
- UTM builderTag one link or hundreds with UTM parameters, check them for mistakes, export a CSV and see which channel each counts as.
- UTM checkerPaste a link and see which UTM tags are missing, which have capitals, and which are fine.
- UTM naming checkerClean a list of campaign names or links: lowercase, spaces to underscores, and a note of each change.
- GA4 URL testerSee the GA4 channel group for a tagged link, and the CrispStats channel beside it.
- UTM link testerCheck a tagged link for missing tags and messy spelling, and see both channel names before you send it.
- Traffic source classifierPaste a referrer or a tagged link and see which channel and source the visit counts as, and why.