docs
  1. SCAYLE Resource Center
  2. Developer Guides
  3. Checkout
  4. Integrate Web Tracking

Integrate Web Tracking

Application Integration

Within Checkout, events enable the tracking of user interactions. You can find an overview of the preconfigured events below. The listed events are defined for the new GA4 structure and they work with the GTM by using the data layer instruction.

Within Checkout, by default we push events to the existing window.dataLayer array, but for embedded forms the postMessage web API is used. Normally, scripts on different pages are allowed to access each other if and only if the pages they originate from share the same protocol, port number, and host. window.postMessage() provides a secure mechanism without these restrictions.

Event List

The following events are available in Checkout:\

Event NameTrigger Description
add_payment_infoUser action triggered by adding/selecting payment method
add_shipping_infoUser action triggered by adding/selecting shipping information
add_to_cartUser action triggered whenever an item is added to basket or quantity changes
complete_checkoutUser action proceeded with "Pay now" step
content_viewThis event is triggered once per page when the user navigates through checkout. It could be fired several times based on the user's behavior (e.g. going forward and backwards within the same Checkout session).
customer_dataAn event triggered every time a user logs-in, registers, sets password or initializes a web component (e.g. proceed from the basket, refreshes a page). It could be fired several times based on the user's behavior, every time submitting user related data to the dataLayer.
errorError events triggered when user's behavior failed (e.g. voucher not valid, address not valid, etc.)
express_checkoutUser action proceeded by "express checkout" step
feature is still under development
feature

User action triggered by an interaction with:
- address book

- billing address

- gift card

- newsletter

- payment method preselect payment method

- promotion

- shipping info

- voucher

loginTrigger when a user logs in
login_modalUser action triggered by login (email, guest) via modal
login_with_customer_id_and_birthdateUser action triggered by login with customer id and birthdate
loyalty_programUser action triggered by an interaction with loyalty program
remove_from_cartUser action triggered whenever an item is removed from basket.
set_passwordTrigger when a user sets a password
shop_initThis event is triggered every time a user loads a web component (e.g. proceed from the basket, refreshes a page). It could be fired several times based on the user's behavior
sign_upTrigger when a user registers

Configuration of Tracking Events

Define the configuration of tracking events.

About

Use the following configuration options to customize tracking events (under tracking):

ParameterDescriptionData TypePossible Values
sendPlaintextEmailinclude email address as plaintext in tracking eventsbooleantrue or false
sendDataLayerEventssend datalayer events that are defined by our tracking teambooleantrue or false
sendFormFieldErrorssend datalayer events for individual form field errorsbooleantrue or false

Before enabling sendPlaintextEmail please align with your data privacy specialists.

Example

You can find an example of these properties in JSON format below:

  "tracking": {
    "sendPlaintextEmail": false,
    "sendDataLayerEvents": true,
    "sendFormFieldErrors": false
  }

The included example configuration is also the default configuration. If you do not require different values, this does not need to be changed.

Overwrite tracking

You can overwrite tracking for a shop on the country level in the SCAYLE Panel:

  1. Go to Shops > [Shop] > Storefront > Checkout Settings > Checkout Frontend Configuration > Tracking
  2. Select overwrite level for:
    • Data Layer Events
    • Form Field Errors
    • Send Plaintext Email