Skip to main content

Surfside Ecommerce Events

You can set up ecommerce events to collect information about the shopping behavior of your users. The events enable you to quantify your most popular products and see the influence of promotions and product placement on revenue.

This document describes each ecommerce event, the data types associated with each event, and the actions that trigger each event. For implementation guidance, see the Implementation Guide.

Supported Ecommerce Data Types and Actions

Product and Promotion Actions

Note: The actions in bold are required for a complete ecommerce implementation.

ActionDescription
clickA click on a product or product link for one or more products.
detailA view of product details.
addAdding one or more products to a shopping cart.
removeRemoving one or more products from a shopping cart.
checkoutInitiating the checkout process for one or more products.
checkout_optionSending the option value for a given checkout step.
purchaseThe sale of one or more products.
refundThe refund of one or more products.
promo_clickA click on an internal promotion.

Product Data

Product data represents individual products that were viewed, added to the shopping cart, etc. It is referred to as a productFieldObject and contains the following values:

KeyValue TypeRequiredDescription
idtextYESThe product ID or SKU (e.g. P67890). One of id or name must be set.
nametextYESThe name of the product (e.g. Pancake). One of id or name must be set.
listtextNoThe list associated with the product (e.g. Cookies).
brandtextNoThe brand associated with the product (e.g. Search).
categorytextNoThe category to which the product belongs (e.g. Flower). Use / as a delimiter to specify up to 5-levels of hierarchy (e.g. Flower/Pre-Roll/Premium).
varianttextNoThe variant of the product (e.g. 1g).
pricenumberNoThe price of a product (e.g. 19.20).
quantityintegerNoThe quantity of a product (e.g. 2).
coupontextNoThe coupon code associated with a product (e.g. SUMMER_SALE13).
positionintegerNoThe product's position in a list or collection (e.g. 2).
currencytextNoThe product's currency (e.g. 'usd').

Transaction Data

Represents information about an ecommerce related action that has taken place. It is referred to as an transactionFieldObject and contains the following values:

KeyValue TypeRequiredDescription
idtextYesThe transaction ID (e.g. T1234). Required if the action type is purchase or refund
affiliationtextNoThe store or affiliation from which this transaction occurred (e.g. Surfside Store).
revenuenumberNoSpecifies the total revenue or grand total associated with the transaction (e.g. 11.99). This value may include shipping, tax costs, or other adjustments to total revenue that you want to include as part of your revenue calculations.
taxnumberNoThe total tax associated with the transaction.
shippingnumberNoThe shipping cost associated with the transaction.
coupontextNoThe transaction coupon redeemed with the transaction.
listtextNoThe list that the associated products belong to.
stepintegerNoA number representing a step in the checkout process. Optional on checkout actions.
optiontextNoAdditional field for checkout and checkout_option actions that can describe option information on the checkout page, like selected payment method.

Impression Data

Represents information about a product that has been viewed. It is referred to as an impressionFieldObject and contains the following values:

KeyValue TypeRequiredDescription
idtextYESThe product ID or SKU (e.g. P67890). One of id or name must be set.
nametextYESThe name of the product (e.g. Pancake). One of id or name must be set.
listtextNoThe list or collection to which the product belongs (e.g. Catalog)
brandtextNoThe brand associated with the product (e.g. Cookies).
categorytextNoThe category to which the product belongs (e.g. Flower). Use / as a delimiter to specify up to 5-levels of hierarchy (e.g. Flower/Pre-Roll/Premium).
varianttextNoThe variant of the product (e.g. 1g).
positionintegerNoThe product's position in a list or collection (e.g. 2).
pricenumberNoThe price of a product (e.g. 15.20).

Promotion Data

Represents information about a promotion that has been viewed. It is referred to a promoFieldObject and contains the following values:

KeyValue TypeRequiredDescription
idtextYesThe promotion ID (e.g. PROMO_1234). One of id or name must be set.
nametextYesThe name of the promotion (e.g. Summer Sale ) . One of id or name must be set.
creativetextNoThe creative associated with the promotion (e.g. summer_banner2).
positiontextNoThe position of the creative (e.g. banner_slot_1).