AB Testing
Learn how to set up and track AB tests with AnyTrack using a simple but powerful tracking snippet.
Running A/B tests without proper tracking means choosing winners based on clicks instead of revenue. Variant A might generate 30% more form submits, but if Variant B drives visitors who actually purchase, you'll optimize for the wrong metric and tank your ROAS.
AnyTrack's pageVariant command tags each test variation so Landing Page Reports show which variant generates real revenue—not just which one gets more traffic. Compare conversion rates, average order value, and total revenue by variant to identify winners based on business outcomes, not vanity metrics.
To your AB tests you can add the following script in the bodyof each page you want to test.
AnyTrack will collect the page variant name and report it in the landing page reports alongside all other metrics.
Replace the MY_AB_TEST_PAGE_NAME with the name or id of your choice.
reminder:The AnyTrack tracking tag must be set in the
headsection of your site.
<script>
AnyTrack("pageVariant", "MY_AB_TEST_PAGE_NAME");
</script>
Feel free to experiment!
Updated 2 days ago
