Skip to main content
All CollectionsPrice Test
How to run price tests only on new customers
How to run price tests only on new customers

This article explain how to run test only on new customer to avoid confusing existing customer

Jeffrey at ABConvert avatar
Written by Jeffrey at ABConvert
Updated this week

When it comes to selling products, each store has different approach. Some store will have customer repeatedly visiting and make final purchase in the end. Some store will only encounter the same customer once.

Hence, running price test only on new customer might be helpful to improve the accuracy of price testing.

This article will explain how can you set up a price test to run only on the new customer.

Turn on our visitor label script

To run a test only on new customers, we will need to label the timestamp for customers when they first visit your site.

To achieve this, we have a dedicate script to help you with that.

Simply go to Online stores > Theme > Customize > App embeds, and you will find our custom label script. Once you enable it, the script will start to label your customer.

Give it some time to collect data

Once the script is enabled, we will suggest starting a new price test at least two weeks after.

Our price test script will calculate the test start time and the first visit time, and compare to the criteria set to decide which price to show to the user.

Once we have the script enabled long enough, we can move on to create a new test.

Set up test with first visit time filter

To run test only on the new customer, we can set a rule to display price based on the first visit time. We can find the settings in the Advanced options when we create the test.

In the settings, we can assign different test groups to new or returning visitors. If a visitor comes to the website after the test is created, they will be categorized as a new visitor. If a visitor has been labeled by our visitor script, they will be categorized as a returning visitor.

That's why we suggest you turn on our visitor label script some time before you start your test.

Then, we are all set! Just continue to fill in other information and create a test. We will have your test only running on the customers that meet the rule.

[Advanced Topic] How to preview the test with first time visit filter setup

To check if the test really runs on the customer that meet the time rule, we can visit your storefront and use the following command to set the first visit timestamp.If you set the timestamp earlier than the test creation time, you will be categorized as an existing customer, and vice versa.

window.localStorage.setItem('abconvert-first-visit-time',#yourtimestamp)

The timestamp here is the milliseconds format of date. Please reference here for more information.

Once you set the timestamp, you can refresh the browser to see if it's running correctly.

Conclusion

This article explains how to run a price test only on new customers. If you encounter any issue when setting up, feel free to reach out to support through the intercom widget or write an email to [email protected].

Did this answer your question?