Skip to main content
Social proofing messages and product-based targeting both depend on knowing how visitors interact with your products. Kameleoon’s Product API collects that interaction data and powers both social proofing messages and advanced targeting conditions. To fully leverage Kameleoon’s social proofing and targeting features, ensure you correctly implement the tracking methods described below. Once implemented, you can retrieve product and transaction data through the obtainProductInteractions() and obtainProductData() endpoints. Counters are now available directly through the Widget Studio as custom variables. Check out this documentation to learn more.

trackProductView()

Use the trackProductView() method on product pages to track when a visitor views a product. See the trackProductView() documentation for details.
Ensure you provide all necessary data for your social proofing setup. You can retrieve only the data you send through the trackProductView() method later, using the obtainProductData() endpoint.

trackCategoryView()

Use the trackCategoryView() method on category pages to track when a visitor views a product category. See the trackCategoryView() documentation for details. Ensure the category ID used here matches the one sent with the trackProductView() method. See the Category object documentation for its properties.

trackAddToCart()

Use the trackAddToCart() method on any page where a visitor can add a product to their cart (for example, the home page, product page, category page, or cart page). See the trackAddToCart() documentation for details.

trackTransaction()

Use the trackTransaction() method on any page displayed after a visitor completes a purchase or transaction. See the trackTransaction() documentation for details.