How do I create an event using Custom Tracking?

Custom Tracking is the manual implementation of Frontend Tracking.

Do you use Google Tag Manager?

A widely used tool for implementing custom tracking is Google Tag Manager. If your organization uses GTM, this is preferred for creating events.

Please go to How do I create an event using Google Tag Manager?

Setup custom Frontend Tracking

Almost all tracking will be done through front-end. Place the personalized code snippet in the head section of every page you want to use tracking on. Note: Please log in to see your personalized snippet.

Setup events

You can find the script of each event together with the mandatory and optional properties to be sent in our api docs. Below you will find additional explanation per event.

➡️Check Frontend Tracking API docs

AddToCart

The AddToCart event should be triggered when a profile adds a product to the cart on the website.

Please note: the product id in the event needs to correspond with the SKU of the product in Spotler Activate!

In the following circumstances more fields are required:

  1. Are there multiple languages used on the website? → then also send language in the product array
  2. Is there more than one currency used on the website? → also send currency in the event

In this event extra data fields from the datalayer can be send along. Tip: send all fields that are available at the trigger in the datalayer and consult with the Spotler Activate users which extra fields they want to receive in the event.

CompleteRegistration

The CompleteRegistration event should be triggered when a profile completes a registration or login.

In this event you can send extra data fields from the datalayer. Tip: send all fields that are available at the trigger in the datalayer and consult with the Spotler Activate users which extra fields they want to receive in the event.

Custom

A profile triggers a custom event to capture certain behavior.

The custom event has no mandatory fields. The event will be (minimal) displayed with the event name in Spotler Activate.

If the event displays more fields, additional fields will be included in the event.

A custom event can also be implemented with Backend Tracking.

EmailOptIn

The EmailOptIn event should be triggered when a profile signs up for the newsletter in the footer of the website.

In this event extra data fields from the datalayer can be sent along. Tip: send all fields that are available at the trigger in the datalayer and consult with the Spotler Activate users which extra fields they want to receive in the event.

InitiateCheckout

The InitiateCheckout event should be triggered when a profile starts the checkout flow.

In this event extra data fields from the datalayer can be sent along. Tip: send all fields that are available at the trigger in the datalayer and consult with the Spotler Activate users which extra fields they want to receive in the event.

PageView

The PageView event should be triggered when a profile views a page on the website. This event is required on all web pages (that you want to track), regardless if other events are triggered.

PrePurchase
The PrePurchase event needs to be triggered when a profile on the website is referred to an external payment solution. In this event extra data fields from the datalayer can be send along. Tip: send all fields that are available at the trigger in the datalayer and consult with the Spotler Activate users which extra fields they want to receive in the event.
Purchase
The purchase event should be triggered when a profile loads the thank you page. It is also recommended to trigger the purchase from the backend.
Please note: the product id in the event needs to correspond with the SKU of the product in Spotler Activate!
In the following circumstances more fields are required:
  1. Are there multiple languages used on the website? → then also send language in the product array
  2. Is there more than one currency used on the website? → also send currency in the event

In this event extra data fields from the datalayer can be send along. Tip: send all fields that are available at the trigger in the datalayer and consult with the Spotler Activate users which extra fields they want to receive in the event.

RemoveFromCart
The RemoveFromCart event should be triggered when a profile removes a product from the cart on the website.
Please note: the product id in the event needs to correspond with the SKU of the product in Spotler Activate!

In the following circumstances more fields are required:

  1. Are there multiple languages used on the website? → then also send language in the product array
  2. Is there more than one currency used on the website? → also send currency in the event

In this event extra fields from the datalayer can be send along. Tip: send all fields that are available at the trigger in the datalayer and consult with the Spotler Activate users which extra fields they want to receive in the event. 

Search

The Search event should be triggered when a profile performs a search on the website.

In this event extra data fields from the datalayer can be send along. Tip: send all fields that are available at the trigger in the datalayer and consult with the Spotler Activate users which extra fields they want to receive in the event.

ViewCategory

The ViewCategory event should be triggered when a profile views a category page on the website.

Note: the category id in the event needs to correspond with the category id in Spotler Activate!

In this event extra data fields from the datalayer can be sent along. Tip: send all fields that are available at the trigger in the datalayer and consult with the Spotler Activate users which extra fields they want to receive in the event.

ViewContent
The ViewContent event should be triggered when a profile views a product page on the website.
Please note: the product id in the event needs to correspond with the SKU of the product in Spotler Activate!

In the following circumstances more fields are required:

  1. Are multiple languages used on the website? → then also send language in the product array
  2. Are multiple currencies used on the website? → also send in the currency in the event

In this event extra data fields from the datalayer can be send along. Tip: send all fields that are available at the trigger in the datalayer and consult with the Spotler Activate users which extra fields they want to receive in the event.

Usefull links