Integrate ABlyftTracking & events

Tracking & events

How conversions get from your website to ABlyft, from codeless click goals to JavaScript events and data layer entries.

An experiment needs at least one goal, a definition of what counts as success. This section explains how each goal type is triggered on your website and what you need to implement.

Shopify shops use dedicated tracking through a webhook or a customer event pixel, see Shopify tracking.

Goal typeHow it is triggeredCode neededRead
PageviewA linked page becomes activeNoneClick & pageview goals
ClickA visitor clicks an element that matches a CSS selectorNoneClick & pageview goals
CustomYour code calls ablyft.push()One lineCustom goals
RevenueYour code calls ablyft.push() with a valueOne lineRevenue tracking

Data layer entries (for example from Google Tag Manager) are not a goal type, but you can use them to start audiences and to run your own code. See Data layer events.

The business side of goals, such as creating a goal, assigning it to an experiment and choosing the counting method, is covered in Configure goals.

Consent

If you use a consent manager, ABlyft may hold back events until tracking is allowed. See Consent manager.