Add To Cart Event

Created by Lara Menéndez · last update June 6, 2019

About this event

Add to Cart event is used to track when any user adds to cart any product from product category page or from product detail page after a product category page visualisation.

Triggered when any product is added to cart from any product category page or from product detail page after visualisation of a product category page.

Implementation

Below, the code associated to each instrumentation method.

Before accomplish this implementation, make sure you’ve performed method initialisation

REST API JAVASCRIPT

GET https://api.empathybroker.com/tagging/v1/track/{instance_ID}/browseAdd2Cart

Query parameters

Please refer to the browse product event parameters.

Response 200 OK if successful

Example https://api.empathybroker.com/tagging/v1/track/myinstanceid/browseAdd2Cart?categoryId=84a534|RootCatName1/55d7047|ChildCat1/5f57048|ChildCat23&productId=0001-2589-3698&position=12&page=1&url=https://mypdppage.com&scope=desktop&lang=es&store=es&session=83065720-6d15-4bda-a7a8-bf87eb9637ce&user=744b0f7a-32c9-4f89-9427-d84135aefa7e