Add a Product to the Shopping Cart
When a user adds a product to their shopping cart on your website, signifying their intent to purchase a specific item.
Create the Antsomi Pixel tag
In workspace > Tags > News > Antsomi pixel template
1. Product Variables option 'Single Entry'
Example Variables for Product
Name Variable | Description | Example |
---|---|---|
{{CDP - Data - Product - ID}} | Product selected variant SKU. Required (*) | WSH11 |
{{CDP - Data - Product - Name}} | Product name. Required (*) | Ina Compression Short |
{{CDP - Data - Product - SKU}} | Product selected variant SKU. | WSH11 |
{CDP - Data - Product - Price}} | Product price. | 49 |
{{CDP - Data - Product - Original Price}} | Product original price. | 49 |
{{CDP - Data - Product - Page URL}} | Product page URL. | https://retail.antsomi.com/ina-compression-short.html |
{{CDP - Data - Product - Image URL}} | Product image URL. | https://retail.antsomi.com/media/catalog/product/w/s/wsh11-blue_main_1.jpg |
{{CDP - Data - Product - Main Category}} | Product main category. | Women |
{{CDP - Data - Product - Color}} | Product selected color. | Blue |
{{CDP - Data - Product - Size}} | Product selected size. | 28 |
{{CDP - Data - Product - Quantity}} | The amount of product that’s being added to the shopping cart. | 1 |
Example Variables for Cart
Name Variable | Description | Example |
---|---|---|
{{CDP - Data - Cart - Subtotal}} | The total amount in the shopping cart (after the add-to-cart action happened). | 49 |
{{CDP - Data - Cart - Item Count}} | The total item in the shopping cart (after the add-to-cart action happened). | 1 |
Example Variables for Customer
Name Variable | Description | Example |
---|---|---|
{{CDP - Data - Customer - ID}} | The customer ID. Required (*) | 4564 |
{{CDP - Data - Customer - Name}} | The identified user’s full name. Required (*) | Abcd |
{{CDP - Data - Customer - Email}} | The identified user’s email in lowercase. | abcd@example.com |
{{CDP - Data - Customer - Phone}} | The formatted user’s phone. | 098xxxx |
2. Product Variables option 'Array-JSON Payload'
Listing example variables
{{CDP - Data - Product Add to Cart}}
Name key in Json Variable | Description |
---|---|
id | Product selected variant SKU. Required (*) |
name | Product name. Required (*) |
sku | Product selected variant SKU. |
price | Product price. |
original_price | Product original price. |
page_url | Product page URL. |
image_url | Product image URL. |
main_category | Product main category. |
color | Product selected color. |
size | Product selected size. |
quantity | The amount of product that’s being added to the shopping cart. |
Cart Variables
Name Variable | Description | Example |
---|---|---|
{{CDP - Data - Cart - Subtotal}} | The total amount in the shopping cart (after the add-to-cart action happened). | 49 |
{{CDP - Data - Cart - Item Count}} | The total item in the shopping cart (after the add-to-cart action happened). | 1 |
{{CDP - Data - Customer}}
Name | Description |
---|---|
customer_id | The customer ID. Required (*) |
name | The identified user’s full name. Required (*) |
phone | The formatted user’s phone. |
The identified user’s email in lowercase. |
Last updated