eCommerce events
This article lists all eCommerce events supported by the ConvertPlus shopping cart.
Overview
The ConvertPlus cart caters to the following Web Metrics solutions:
Google Universal Analytics
Google Tag Manager (with Universal Analytics)
Adobe Dynamic Tag Manager
Google Analytics 4
Google Tag Manager (with GA4)
Each solution handles enhanced events triggered by the ConvertPlus Cart differently. Because each Web Metrics solution prefers its data arranged in a particular way, the document describes each web solution separately, alongside a distinct section for the custom cartUpdated event.
The parameters below are used to track eCommerce events triggered by the ConvertPlus and InLine carts.
Availability
Merchant tracking is available for all 2Checkout accounts.
eCommerce events grouped by Web Metric
Google Universal Analytics
The Google Universal Analytics dataLayer differs from Google Tag Manager and Adobe's Dynamic Tag Manager in that it is an array of arrays. Each event pushed in the dataLayer is an array with various indexes, based on the type of the triggered event:
The first element of the array determines the type of payload added to the
dataLayer(it can either be event or config).The second element of the array determines the sub-type of the first element.
The third element is an object with the actual data/payload.
Event: begin_checkout
Triggered by: LOAD_CART (load-cart)
Notes:
The item’s price is the item’s net discounted price, taken from the item’s key named
itemNetDiscountedPriceThe item’s price should not be calculated with the item’s quantity
The item’s coupon key is only present if a coupon is applied
The order’s coupon key is only present if an order coupon is applied
Example:
Event: purchase
Triggered by: PLACE_ORDER (place-order:success)
Notes:
The
transaction_idis the order'srefNohashed using sha256The value is the order's
grossDiscountedprice and it should reflect the total amount the shopper has to payThe item's price is the item's net discounted price
The item's coupon key is only present is a coupon is applied
The order's coupon key is only present if an order coupon is applied
Event: remove_from_cart
Triggered by: DELETE_ITEM (delete-item)
Notes:
The item's coupon key is only present if a coupon is applied
The value is the order's net discounted price
The item's price is the item's net dicounted price, not taking quantity into account
The order's coupon key is only present if an order coupon is applied
Example:
Event: page_redirect
Triggered by: LOAD_PAGE (load-page)
Notes:
Is only triggered if the cart is redirected to the retry page
Example:
Google Analytics 4
The Google Analytics 4 DataLayer is an array of arrays. Each event pushed in the dataLayer is an array with various indexes, based on the type of the triggered event:
The first element of the array determines the type of payload added to the
dataLayer(it can either be event or config).The second element of the array determines the sub-type of the first element.
The third element is an object with the actual data/payload.
Event: begin_checkout
Triggered by: LOAD_CART (load-cart)
Notes:
The item’s price is the item’s net discounted price, taken from the item’s key named
itemNetDiscountedPriceThe item’s price should not be calculated with the item’s quantity
The item’s coupon key is only present if a coupon is applied
The order’s coupon key is only present if an order coupon is applied
Example:
Event: purchase
Triggered by: PLACE_ORDER (place-order:success)
Notes:
The
transaction_idis the order’srefNohashed using sha256The value is the order’s
grossDiscountedprice and should reflect the total amount the shopper has to payThe item’s price is the item’s net discounted price
The item’s coupon key is only present if a coupon is applied
The order’s coupon key is only present if an order coupon is applied
Example:
Event: remove_from_cart
Triggered by: DELETE_ITEM (delete-item)
Notes:
The item’s coupon key is only present if a coupon is applied
The value is the order’s net discounted price
The item’s price is the item’s net discounted price, not taking quantity into account
The order’s coupon key is only present if an order coupon is applied
Example:
Event: page_redirect
Triggered by: LOAD_PAGE (load-page)
Notes:
Is only triggered if the cart is redirected to the retry page
Example:
Event: add_to_cart
Triggered by: ADD_ITEM (add-item)
Notes:
The item’s coupon key is only present if there is an active product coupon code (coupon / auto-apply)
The item’s price is the item’s net discounted price
The item's format key for cross-sell product may be:
cross_sellfor products displayed in a listing, as recommended products;auto_cross_sellfor cross-sell products auto added in the cart;mainfor products which are not cross sell
Example:
Event: view_item_list
Triggered by: LOAD_CROSS_SELL (load-cross-sell)
Notes:
The item’s price is the item’s net discounted price
The item's index key is the position of the product in the cross-sell listing
Example:
Google Tag Manager with Universal Analytics
For Google Tag Manager with Universal Analytics, the dataLayer is an array of objects. The object payload passed to the DataLayer is mainly made up of two keys: event & ecommerce.
The event key determines the type of event passed to the dataLayer, while the ecommerce key holds the eCommerce object with all the relevant event data.
Both Google Tag Manager and Adobe’s Dynamic Tag Manager follow the same advanced eCommerce layout and they also have the ability to support Custom Events (cartUpdated). See the Custom events (cartUpdated) section below.
Event: checkout
Triggered by: LOAD_CART (load-cart)
SET_ECOMMERCE (set-ecommerce)
Notes:
The
actionField’s step will always be 1 as the checkout page is the first action fieldThe product’s price key is the item’s net discounted price
The product’s
hiddenAdditionalFieldskey is only present if the product has hidden additional fieldsThe product’s options key is only present if the product has active options
The
actionField’s coupon key is only present if there is a valid order promotion presentThe
actionField’sorderDiscountCouponkey is only present if there is a valid order promotion present (defaults to 'auto-apply' if the promotion doesn’t have a promotion coupon)
Example:
Event: purchase
Triggered by: PLACE_ORDER (place-order:success)
Notes:
The
actionField’s id key is the order’srefNohashed with sha256The
actionField’s revenue key is the order’s gross discounted priceThe
actionField’s purchaseFlow key references purchase flow selected by the customer (personal/company)The
actionField’s affiliation key is only present if the order has an affiliateMany other optional keys (
coupon,returnType,returnUrl,subscription, etc.) are present only when relevantProduct-specific keys: coupon, price (net discounted price), isDynamic / dynamicType / dynamicRecurrence, hiddenAdditionalFields, options
Example:
Event: removeFromCart
Triggered by: DELETE_ITEM (delete-item)
Notes:
The product’s coupon key is only present if there is an active product coupon code (coupon / auto-apply)
The product’s price is the item’s net discounted price
Dynamic product keys present only if product is dynamic
Product’s
hiddenAdditionalFieldspresent only if the product has hidden fieldsOptions present only if product has active options
Remove
actionFieldcoupon &orderDiscountCouponpresent only when valid order promotion exists (defaults to 'auto-apply')
Example:
Event: addToCart
Triggered by: ADD_ITEM (add-item)
Notes:
The product’s coupon key is only present if there is an active product coupon code (coupon / auto-apply)
The product’s price is the item’s net discounted price
Dynamic product keys present only if product is dynamic
hiddenAdditionalFields&optionspresent only when applicable
Example:
Event: addToCart
Triggered by: ADD_ITEM (add-item)
Notes:
The product’s coupon key is only present if there is an active product coupon code (coupon / auto-apply)
The product’s price is the item’s net discounted price
Dynamic product keys present only if product is dynamic
hiddenAdditionalFields&optionspresent only when applicable
Example:
Google Tag Manager with GA4
Google Tag Manager GA4 respects the Google Analytics 4 structure. The dataLayer is an array of objects. The object payload passed to the dataLayer is mainly composed of two keys: event & ecommerce.
The event key determines the type of event passed to the dataLayer, while the ecommerce key holds the eCommerce object with all the relevant event data.
Event: begin_checkout
Triggered by: LOAD_CART (load-cart)
SET_ECOMMERCE (set-ecommerce)
Notes:
The
actionField’s step will always be 1 for the checkout pageThe item’s price key is the item’s net discounted price
The item’s
hiddenAdditionalFieldskey is only present if the product has hidden additional fieldsThe item’s options key is only present if the product has active options
The
actionField’s coupon key is only present if there is a valid order promotion presentThe
actionField’sorderDiscountCouponkey is only present if there is a valid order promotion present (defaults to 'auto-apply')
Example:
Event: purchase
Triggered by: PLACE_ORDER (place-order:success)
Notes:
The
transaction_idkey is the order’s refNo hashed with sha256The value key is the order’s gross discounted price
Various
actionFieldkeys present only when applicable (purchaseFlow, affiliation, coupon, returnType/returnUrl, subscription, orderDiscountCoupon etc.)Item keys: coupon, price (net discounted), dynamic keys, hiddenAdditionalFields, options
Example:
Event: remove_from_cart
Triggered by: DELETE_ITEM (delete-item)
Notes:
The coupon key is only present if there is an active product coupon code
The item’s price is the item’s net discounted price
Dynamic keys and hiddenAdditionalFields present only when applicable
orderDiscountCoupondefaults to 'auto-apply' if promotion has no coupon
Example:
Event: add_to_cart
Triggered by: ADD_ITEM (add-item)
Notes:
Item coupon key only present if active product coupon code
Item price is net discounted price
Dynamic keys,
hiddenAdditionalFields, options present only when applicable
Example:
Event: view_item_list
Triggered by: LOAD_CROSS_SELL (load-cross-sell)
Notes:
The item’s price is the net discounted price
The item's index key is the position of the product in the cross-sell listing
Example:
Adobe's Dynamic Tag Manager
The layout is the same advanced eCommerce layout as GTM/UA in structure; payload keys are similar and many product/actionField keys are optional and present only when relevant.
Event: checkout
Triggered by: LOAD_CART (load-cart)
SET_ECOMMERCE (set-ecommerce)
Notes:
actionField.stepis always 1 for checkoutactionFieldcoupon &orderDiscountCouponpresent only when applicable (orderDiscountCoupondefaults to 'auto-apply')Item price is net discounted price
hiddenAdditionalFields&optionspresent only when applicableProduct
externalRefpresent only if product has external reference
Example:
Event: purchase
Triggered by: PLACE_ORDER (place-order:success)
Notes:
actionField.idis the order’s refNo hashed with sha256actionField.revenueis the order’s gross discounted pricepurchaseFlow,affiliation,coupon,returnType/returnUrl,subscriptionfields present when applicableMany product-specific optional keys (coupon, dynamic keys,
hiddenAdditionalFields, options,externalRef)
Example:
Event: removeFromCart
Triggered by: DELETE_ITEM (delete-item)
Notes:
Product coupon key only present if active product coupon code
Price is net discounted price
Dynamic keys,
hiddenAdditionalFields, options,externalRefpresent only when applicableRemove
actionFieldcoupon &orderDiscountCouponpresent only when applicable (defaults to 'auto-apply')
Example:
Event: addToCart
Triggered by: ADD_ITEM (add-item)
Notes:
Product coupon key only present if active product coupon code
Price is net discounted price
Dynamic keys,
hiddenAdditionalFields, options,externalRefpresent only when applicable
Example:
Custom events (cartUpdated)
Some Web Metric solutions allow the use of custom events. Currently, these solutions are Adobe’s Dynamic Tag Manager and Google Tag Manager.
Custom events allow passing any values under any keys in a consistent format.
The format of a custom event is as follows:
The event key will always be populated with the cartUpdated value as this is the name of the custom event. Alongside the event key, you can find any number of custom keys; their names and values vary and depend on the action the user performed in the cart.
The ConvertPlus shopping cart implements an event buffer.
When a shopper performs an action in the cart, the cart triggers many internal events that can lead to many small updates. To prevent the dataLayer from being spammed by unnecessary small updates, the event buffer collects events within a short time window (1 second at the time of writing), keeps only the newest values, and releases them in bigger chunks.
The custom keys used by the cartUpdated event are as follows:
Event: PAGE_NAME
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page)
PLACE_ORDER (place-order:success)
Values:
checkout
finish
retry
Example:
Event: PAGE_THEME
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page) (only if the key’s value changed)
Values:
2CO-MARKETPLACE-default
BITWIG-one-column
COMODOJC-default
default
inline
inline-one-step
MOVAVI-inline
one-column
SITEL-inline
VisitTCI-inline | The loaded theme’s name.
Notes:
The loaded theme’s name.
Example:
Event: merchant_CODE
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page) (only if the key’s value changed)
Notes:
The 2CheckOut code from GAP.
Example:
Event: ONESTEPCART
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page) (only if the key’s value changed)
Values:
Boolean
Notes:
Only triggered by these two events and hard-coded to true or false depending on the flow.
Trueif the flow has no review page,falseotherwise.
Example:
Event: SHORT_FORM
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
Boolean
Notes:
Only triggered by these two events and hard-coded to true or false depending on short form presence.
Example:
Event: PURCHASE_COMPLETE
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
PLACE_ORDER (place-order:success)
Values:
Boolean
Notes:
When triggered from
LOAD_CARTorLOAD_PAGEit is set to true if the page name is not finish. When triggered fromPLACE_ORDERit is set to true.
Example:
Event: TEMPLATE_CREATION_DATE
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
Null or a date
Notes:
Returns the date when the merchant created the customized template, or null if there is no customization.
Example:
Event: TEMPLATE_LAST_MODIFIED_DATE
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
Null or a date
Notes:
Date when the customized template was last modified, or null if there is no customization.
Example:
Event: PAGE_STYLE_NAME
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
The name of the customized theme
Notes:
Returns the name of the customized template from the merchant’s Control Panel, or null if none.
Example:
Event: PROFESSIONAL_SERVICES
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
Boolean
Notes:
Determined by whether the template has been customized by professional services.
Example:
Event: TEST_ORDER
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
Boolean
Notes:
True if the loaded cart is in test mode.
Example:
Event: PRODUCT_SOURCE
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
Catalog or Dynamic
Notes:
Determined by the products in the cart.
Example:
Event: CART_LOCK
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
Boolean
Notes:
True if the cart is locked.
Example:
Event: DISCOUNT_COUPON
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
UPDATE_COUPON (apply-coupon)
Values:
Coupon code
Notes:
Only present if one or more products have discounts applied. Only takes into account product level coupons.
Example:
Event: DISCOUNT_COUPON_STATUS
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
UPDATE_COUPON_STATUS (set-coupon-status)
Values:
Unavailable: order doesn’t allow promotions and items don’t have discounts applied
Available: order allows promotions and items don’t have discounts applied
Applied: order allows promotions and items have discounts applied
Notes:
On
LOAD_CARTandLOAD_PAGEthe status is computed based onorder.allowsPromotionand items having discounts applied.When set via
UPDATE_COUPON_STATUSthe computed status is received as a string.
Example:
Event: COMPANY_NAME
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
UPDATE_COMPANY_NAME (change:companyName)
Values:
Company name
Notes:
The company name entered by the user when the company flow is selected.
Example:
Event: ORDER_EXT_REF
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
String
Notes:
The external reference set by the merchant.
Example:
Event: CUSTOMER_EXT_REF
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
String
Notes:
The external customer reference set by the merchant.
Example:
Event: AUTO_RENEWAL
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
UPDATE_RENEWAL_STATUS (set-renewal-status)
Values:
Unavailable (recurring option disabled or order status not enabled)
Invisible Applied (recurring option enabled, invisible applied, and order status enabled)
Available (recurring option enabled, opt-in or opt-out, and order status not enabled)
Visible Applied (recurring option enabled, opt-in or opt-out, and order status enabled)
Notes:
The status is computed based on the visibility of the recurring button (Recurring option in GAP account settings) and the actual recurring status of the order.
Example:
Event: PURCHASE_TYPE
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
Regular (cart doesn’t contain subscription products)
Renewal (cart contains subscription products)
Notes:
Determined by the products the cart was loaded with.
Example:
Event: ADDITIONAL_HIDDEN_FIELDS
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
Values:
The value of the additional hidden field may be null if it has no value
Notes:
Array of hidden additional fields.
Example:
Event: BILLING_COUNTRY
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
UPDATE_COUNTRY (change:country)
Values:
The country code
Notes:
Same value as
VISITOR_COUNTRY.On
LOAD_CARTandLOAD_PAGEthe order country is used.On
UPDATE_COUNTRYthe country code is sent directly from the cart’s context.It can be empty if no country is selected.
Example:
Event: VISITOR_COUNTRY
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
UPDATE_COUNTRY (change:country)
Values:
The country code
Notes:
Same as
BILLING_COUNTRY.On
LOAD_CARTandLOAD_PAGEthe order country is used.On
UPDATE_COUNTRYthe country code is sent directly from the cart’s context.
Example:
Event: BILLING_CURRENCY
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
UPDATE_CURRENCY (change:currency)
Values:
The currency code
Notes:
On
LOAD_CARTandLOAD_PAGEthe order’s currency is used.On
UPDATE_CURRENCYthe currency code is sent directly from the cart’s context.
Example:
Event: LANGUAGE
Triggered by:
LOAD_CART (load-cart)
LOAD_PAGE (load-page, only if the key’s value changed)
UPDATE_LANGUAGE (change:language)
PLACE_ORDER (place-order:success)
Values:
The language code
Notes:
On
LOAD_CART,LOAD_PAGEandPLACE_ORDERthe order’s language is used.On
UPDATE_LANGUAGEthe language code is sent directly from the cart’s context.
Example:
Event: FORM_ERROR
Triggered by:
SET_ERRORS (set-errors)
Values:
Form field names separated by |
Notes:
The form fields where an error occurred in the cart.
Example:
Event: PAYMENT_METHOD
Triggered by:
UPDATE_PAYMENT_METHOD (change:paymentMethod)
Values:
The payment method code
Notes:
Comes paired with
PAYMENT_METHOD_TYPE.It is the payment method selected in the shopping cart (for example, visa or mastercard).
Example:
Event: PAYMENT_METHOD_TYPE
Triggered by:
UPDATE_PAYMENT_METHOD (change:paymentMethod)
Values:
The payment method code
Notes:
offline (offline payment method) or online (online payment method).
Whether the payment method is online or offline, determined by paymentMethod.isOffline
Example:
Event: PAYMENT_CATEGORY
Triggered by:
UPDATE_PAYMENT_METHOD (change:paymentMethod)
Values:
Payment method label
Notes:
The payment method label selected in the shopping cart (Credit card, wire, etc.).
Example:
Event: QUANTITY_CHANGED
Triggered by:
UPDATE_ITEM (update-item)
Values:
Integer
Notes:
Indicates change in quantity.
Example:
Event: CART_STEP
Triggered by:
UPDATE_CART_STEP (change:cartStep)
Values:
STEP_HOME
STEP_PRODUCT
STEP_BILLING
STEP_DELIVERY
STEP_PAYMENT
Notes:
Only triggered for InLine themes.
Example:
Event: ADDITIONAL_FIELDS_COUNT
Triggered by:
UPDATE_ADDITIONAL_FIELD_COUNT (additional-fields-count-changed)
Values:
Integer
Notes:
Number of additional fields present.
Example:
Event: PURCHASE_FLOW
Triggered by:
UPDATE_PURCHASE_FLOW (set-purchase-flow)
Values:
personal (personal flow selected) or company (company flow selected)
Notes:
Set by the customer when selecting purchase flow.
Example:
Event: SOURCE
Triggered by:
UPDATE_ADDITIONAL_FIELD_COUNT (additional-fields-count-changed)
Values:
The source value
Notes:
Merchant-defined source.
Example:
Event: time
Triggered by:
SET_ECOMMERCE (set-ecommerce)
Values:
Timestamp
Notes:
Sets the current time as a timestamp after a
SET_ECOMMERCEevent.
Example:
Event: CREDIT_CARD_INSTALLMENTS
Triggered by:
UPDATE_HAS_INSTALLMENTS (set-has-cc-installments)
Values:
Yes or No
Notes:
Indicates whether credit card installments are available.
Example:
Related documentation
Last updated
Was this helpful?