Skip to main content
All CollectionsAdvanced topic
How ABConvert script works
How ABConvert script works

In this article, we are going explain how our app script works.

Jeffrey at ABConvert avatar
Written by Jeffrey at ABConvert
Updated over 3 months ago

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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:

  1. Preview the product page by clicking the preview link on the "Analytics" page.

  2. Make sure the script is working correctly on your theme. If you encounter any compatibility issues, please contact support at [email protected].

  3. 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

Did this answer your question?