Kameleoon’s Product API 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 theDocumentation Index
Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
Use this file to discover all available pages before exploring further.
obtainProductInteractions() and obtainProductData() endpoints.
Counters are now available directly through the Widget Studio as custom variables. Checkout this documentation to know more.
trackProductView()
Use thetrackProductView() method on product pages to track when a visitor views a product. Read more about the method here.
Ensure you provide all necessary data for your social proofing setup. Only the data sent via the
trackProductView() method can be retrieved later through the obtainProductData() endpoint.trackCategoryView()
Use thetrackCategoryView() method on category pages to track when a visitor views a product category. Read more about the method here.
Ensure the category ID used here matches the one sent with the trackProductView() method. Read more about the Category object here.
trackAddToCart()
Use thetrackAddToCart() 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.
Read more about the trackAddToCart() method here.
trackTransaction()
Use thetrackTransaction() method on any page displayed after a visitor completes a purchase or transaction. Read more about the method here.