A/B Testing
Learn how to tag A/B test page variants in AnyTrack so Landing Page Reports show which variant generates the most revenue, not just the most clicks. Includes the pageVariant JavaScript snippet and setup instructions.
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 pick winners based on business outcomes.
ImportantThis setup requires adding a JavaScript snippet to each page variant. If you're not comfortable with code, share this guide with your developer.
Setup
Add the following snippet in the <body> of each page variant. The Tracking Tag must already be installed in the <head> section.
Replace MY_AB_TEST_PAGE_NAME with a unique name or ID for the variant:
<script>
AnyTrack("pageVariant", "MY_AB_TEST_PAGE_NAME");
</script>AnyTrack collects the variant name and reports it in the Landing Page Reports alongside all other metrics. Combine this with Custom Event Triggers to track variant-specific interactions, and review winning variants in the Conversion Report to see which version drives the most revenue.
FAQ & Troubleshooting
FAQ was last reviewed on 2026-05-16
Updated 13 days ago
