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 VariableDescriptionExample

{{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 VariableDescriptionExample

{{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 VariableDescriptionExample

{{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}}

[{"id":"WSH11","name":"Ina Compression Short","sku":"WSH11","price":49,"original_price":49,"page_url":"https://retail.antsomi.com/ina-compression-short.html","image_url":"https://retail.antsomi.com/media/catalog/product/cache/0435c4d0819597927438a767a3d5977f/w/s/wsh11-blue_main_1.jpg","main_category":"Women","color":"blue","size":"28","quantity":1}]
Name key in Json VariableDescription

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 VariableDescriptionExample

{{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}}

{"customer_id":"4564","phone":"098xxxx","name":"Abcd","email":"abcd@example.com"}
NameDescription

customer_id

The customer ID. Required (*)

name

The identified user’s full name. Required (*)

phone

The formatted user’s phone.

email

The identified user’s email in lowercase.

Last updated