Optimize
5.3K members online now
5.3K members online now
Learn how to create your first experiment and get tips on creating A/B, redirect, and multivariate tests.
Guide Me
star_border
Reply

Best way to test dynamic content / text?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I want to test a dynamic text string on my e-commerce product page. The text is "In stock" and "Not in stock". The text is placed in the same DIV element which makes it difficult to use standard features for the experiment.

What is the best way to test a variant, where I want to change one of the texts - e.g. "Many in stock"?

Best way to test dynamic content / text?

Follower ✭ ☆ ☆
# 2
Follower ✭ ☆ ☆

Depending on your CMS/platform - I'd output both variations on all pages, and have the default/baseline show by default and the variant hidden, and in the css for the A/B test you flip them.

 

e.g.
<span class="stock-message">In Stock</span>

<span class="stock-message-alternate">Many in Stock</span>

 

css to add everywhere

.stock-message { display: inline-block;}

.stock-message-alternate { display: none; } 

css to inject via optimize

.stock-message { display: none;}

.stock-message-alternate { display: inline-block; }