Using AB Split Test with TranslatePress
AB Split Test works seamlessly with TranslatePress to help you test different content variations across multiple languages. This guide shows you how to set up A/B tests on multilingual sites.
How It Works
AB Split Test and TranslatePress work together in this order:
- AB Split Test randomly assigns a variation to each visitor
- TranslatePress translates the assigned variation based on the visitor's language
- The visitor sees the translated version of their assigned variation
This means you can test different messaging across different languages simultaneously.
Full Page Tests with TranslatePress
Full Page tests work perfectly with TranslatePress. Here's how to set them up:
Setup Steps
- Create two separate pages (Page A and Page B) with different content
- Translate both pages in TranslatePress for all your target languages
- Create a Full Page test in AB Split Test:
- Set Page A as your default page
- Add Page B as a variation
- Publish your test
How It Works
- AB Split Test redirects visitors to either Page A or Page B
- TranslatePress automatically shows the translated version based on the visitor's language
- Example: A French visitor assigned to Page B sees the French translation of Page B
Important Note
Both pages must be fully translated in TranslatePress. If a translation is missing, visitors will see the default language for that page.
On-Page Element Tests with TranslatePress
On-Page Element tests are the most flexible option for multilingual testing. You can test different headlines, buttons, or sections in multiple languages.
Setup Steps
1. Create Multiple Elements in Your Page Builder
In your page builder (Elementor, Breakdance, Bricks, etc.), create separate elements for each variation you want to test.
For example, to test different headlines:
- Create H1 Element 1: "Get Your Free Quote Today"
- Create H1 Element 2: "Start Your Project with a Free Quote"
2. Tag Each Element with AB Split Test
- Go to each element's settings
- Find the AB Split Test tab (under Advanced settings)
- Select your test name
- Assign a unique variation name to each element
- Save
3. Translate Each Variation in TranslatePress
- Open the TranslatePress editor
- You'll see ALL elements in the editor (even though only one shows at a time on the front-end)
- Translate each variation separately:
- Variation A to French: "Obtenez votre devis gratuit aujourd'hui"
- Variation B to French: "Démarrez votre projet avec un devis gratuit"
4. How It Works
- AB Split Test randomly shows one element per visitor
- TranslatePress translates whichever variation is shown
- French visitors see the French translation of their assigned variation
Example: Testing Different Call-to-Action Headlines
Base language (English):
- Variation A: "Get Your Free Quote Today"
- Variation B: "Start Your Project with a Free Quote"
French translations:
- Variation A: "Obtenez votre devis gratuit aujourd'hui"
- Variation B: "Démarrez votre projet avec un devis gratuit"
How it works:
- English visitors see either "Get Your Free Quote Today" or "Start Your Project with a Free Quote"
- French visitors see either "Obtenez votre devis gratuit aujourd'hui" or "Démarrez votre projet avec un devis gratuit"
- AB Split Test determines which variation each visitor sees
- TranslatePress ensures they see it in their language
AB Split Test and TranslatePress work together seamlessly to let you test different content variations across multiple languages.
Need Help?
If you're having trouble setting up multilingual A/B tests, contact our support team and we're happy to help you get it working!