add_to_cart
This event signifies that an item was added to a cart for purchase.
Parameters
currency
Property string
required
USD Currency of the items associated with the event, in 3-letter ISO 4217 format.
If you set value then currency is required for revenue metrics to be computed accurately.
value
Property number
required
The monetary value of the event.
- Set value to the sum of (price * quantity) for all items in items. Don't include shipping or tax.
- value is typically required for meaningful reporting. If you mark the event as a key event then it's recommended you set value.
- currency is required if you set value.
items
Property Item[] required
The items for the event.
added_item_product_name
Property string
The name of the product that was added to the cart.
added_item_product_id
Property string
The ID of the product that was added to the cart.
added_item_sku
Property string
The SKU of the product that was added to the cart.
added_item_categories
Property string[]
An array of categories for the product that was added to the cart.
added_item_image_url
Property string
The URL of the image for the product that was added to the cart.
added_item_url
Property string
The URL of the product that was added to the cart.
added_item_price
Property number
The price of the product that was added to the cart.
added_item_quantity
Property number
The quantity of the product that was added to the cart.
item_names
Property string[]
An array of product names in the cart.
checkout_url
Property string
The URL of the checkout page.