CLEAR_CART event
You can send a CLEAR_CART event to ensure that Sitecore CDP ignores any products or contacts that have been passed to Sitecore CDP during the browser session.
The CLEAR_CART event is typically sent when a guest performs a new search. This removes all products and contacts from the cart and ensures that Sitecore CDP does not send an abandoned cart email message to the guest.
To send a CLEAR_CART event, use the following required attributes:
Attribute |
Type |
Description |
Example |
---|---|---|---|
|
string (uppercase) |
The touchpoint where the user interacts with your brand. |
|
|
string (uppercase) |
The type of the event that takes place when the user interacts with your brand. |
|
|
string (uppercase ISO 639-1) |
The language the user is using your app in. |
|
|
string (uppercase ISO 4217) |
The alphabetic currency code of the currency the user is using in your app. |
|
|
string |
The name of the webpage where the interaction with your brand takes place. This is a custom value of your choice. |
|
|
string |
The name of the point of sale where the interaction with your brand takes place. |
|
|
string |
The browser ID. |
|
{
"channel": "MOBILE_APP",
"type": "CLEAR_CART",
"language": "EN",
"currency": "EUR",
"page": "home",
"pos": "myretailsite/ireland",
"browser_id": "a38b230c-11eb-4cf9-8d5d-274e9f344925"
}