Tracking in Shopify (Webhook)
This guide explains how to enable the Shopify Default Integration in ABlyft and configure your Shopify store to send purchase data via a webhook.
On this page
Introduction
With this type of integration ABlyft track the main purchase-related data with a server-side approach.
The following Goals (metrics) will be measured:
- Purchases (as conversions)
- Revenue (as number)
- Products count (in cart on purchase)
Please mind
- These goals will be counted whenever a user places an order. So it always behaves like the "counting method" any, no matter what you set up in the goal setting in the platform.
- It is still necessary to implement the base snippet in the
theme.liquid
. This is just for enabling the tracking part. - This approach is not working if the user is directly starting with checkout. It only tracks experiments running in the shop itself.
- You can mix this tracking approach with the Customer Event one - but remove the three goals named above from the tracking code to avoid duplicate triggering.
1. Enable the Shopify Integration in ABlyft
Generally there are two things to do in the platform. On the one hand you have to enable the Shopify Default Integration. On the other hand you have to set up the corresponding Goals.
Enable the Shopify Default Integration
- In ABlyft, go to
Integrations
from the left hand side menu - Enable the integration
Shopify
by using the toggle
Set up the corresponding Goals
In order to let the three available goals work you have to set them up properly.
Go the Goals
and create the following:
-
Purchase
Goal Name: Purchase
(or as desired)Goal Type: custom
(mandatory)Metric View: Conversion
(mandatory)API Name: purchase
(mandatory) -
Revenue
Goal Name: Revenue
(or as desired)Goal Type: revenue
(mandatory)API Name: revenue
(mandatory) -
Products Count
Goal Name: Products Count
(or as desired)Goal Type: custom
(mandatory)Metric View: Values
(mandatory)API Name: products-count
(mandatory)
2. Add the ABlyft Webhook in Shopify
- Log in to your Shopify Admin.
- Go to Settings → Notifications → Webhooks.
- Click Create Webhook.
- Configure the webhook as follows:
Event: Order creation
Format: JSON
URL: https://log.ablyft.com/shopify
Webhook API version: 2025-07