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

  1. In ABlyft, go to Integrations from the left hand side menu
  2. 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:

  1. Purchase
    Goal Name: Purchase (or as desired)
    Goal Type: custom (mandatory)
    Metric View: Conversion (mandatory)
    API Name: purchase (mandatory)
  2. Revenue
    Goal Name: Revenue (or as desired)
    Goal Type: revenue (mandatory)
    API Name: revenue (mandatory)
  3. 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

  1. Log in to your Shopify Admin.
  2. Go to Settings → Notifications → Webhooks.
  3. Click Create Webhook.
  4. Configure the webhook as follows:
    Event: Order creation
    Format: JSON
    URL: https://log.ablyft.com/shopify
    Webhook API version: 2025-07