Learn how to address common issues with a price test
In this article:
- Intelligems does not swap duplicate product when adding to cart
- Intelligems does not add the _igDiscount line item property when adding to cart
Intelligems does not swap duplicate product when adding to cart
This is applicable only to non-Shopify Plus stores. When adding a product that's being tested to cart, Intelligems should swap the product for the duplicate that corresponds to the user's test group (if the user is in the control group, then Intelligems won't swap). Some common issues that may cause this not to work correctly are:
- The add to cart happened on a page where the Intelligems Javascript was not loaded (e.g., a landing page with which Intelligems has not been integrated). Check the page source or network traffic to ensure that the Intelligems JS bundle is loading on the page. Learn more about adding the Intelligems Javascript bundle to your theme here.
- There's an error causing the Intelligems Javascript to exit early. Check the Javascript console for errors raised by Intelligems, and check the window.igData.errors object for any suppressed error messages
- The add to cart is happening via a mechanism that Intelligems does not support, or skipping add to cart altogether. Common examples include third-party apps that use Draft Orders or landing pages that use checkout permalinks
Intelligems does not add the _igDiscount line item property when adding to cart
This is applicable only to Shopify Plus stores. When adding a product that's being test to cart, Intelligems should add a line item property _igDiscount that indicates the amount of discount to apply to the line item in order to effect the correct price for the user's test group. Some common issues that cause this not to work correctly are:
- The add to cart happened on a page where the Intelligems Javascript was not loaded (e.g., a landing page with which Intelligems has not been integrated). Check the page source or network traffic to ensure that the Intelligems JS bundle is loading on the page. Learn more about adding the Intelligems Javascript bundle to your theme here.
- There's an error causing the Intelligems Javascript to exit early. Check the Javascript console for errors raised by Intelligems, and check the window.igData.errors object for any suppressed error messages
- The add to cart is happening via a mechanism that Intelligems does not support, or skipping add to cart altogether. Common examples include third-party apps that use Draft Orders or landing pages that use checkout permalinks