What is the script doing
To perform real-time price testing and split traffic in real-time when a user visits, we need to install our app script.
The script does the following for us:
Splits traffic: When a customer visits a product page, the script assigns them to a group and shows them the corresponding product price. This price will remain consistent throughout the customer’s lifetime to prevent confusion.
Cleans up elements on the product page: Our app creates product variants with different prices. To ensure that users do not see variants they are not supposed to see, the script removes these elements.
Changes the price of test products on other pages: The script also updates the price of test products on the home page and collection page so that customers will always see the correct price.
Counts product views: When a customer visits a product page, the script sends an event to our server, allowing us to track the number of views for each product.
Reminder
Before you start a test, here are a few things to keep in mind:
Preview the product page by clicking the preview link on the "Analytics" page.
Make sure the script is working correctly on your theme. If you encounter any compatibility issues, please contact support at
[email protected]
.Do stop a test by clicking
Deactivate
button on the test before you disable the script.
FAQs
Q: Will the script slow down my website?
A: No, our app is optimized and does not block website performance. It will not impact the speed of your website.
Q: Why is there an imbalance in the number of views for the test price and the original price?
A: Our script assigns visitors to different prices randomly. This may result in an imbalance in the number of views for each group. As the number of views increases, this imbalance should disappear