Skip to content

Shopify Integration

The AnyTrack Shopify integration tracks purchases and key events for eCommerce stores and attributes them to your ads. On paid plans, AnyTrack sends the conversions to platforms like Google Ads, Facebook Ads, and TikTok Ads through the Conversion API.

This guide takes you from install to verified conversions.

Watch the complete Shopify setup from start to finish: install the Tracking Tag in your theme, create the five Shopify webhooks, connect your Facebook Pixel with the Conversion API, and see the results in a live Campaign Report.

Play YouTube video

AnyTrack collects the full customer journey, enriches it, and, on the Starter plan and above, sends it to your ad platforms. It works in four stages:

How Shopify data flows through AnyTrack

From the first visit to a server-side conversion in your ad platforms

1
Session

The session starts

When a visitor lands on your store, the AnyTrack Tag opens a session — collecting the traffic source, UTM parameters, and first-party data, and storing them against a click ID (atclid).

2
Customer Journey

Events are tracked two ways

AnyTrack tracks the shopping journey through both channels:

  • Client-side (Tracking Tag): collects PageView, ViewContent, and AddToCart in the browser.
  • Server-side (Shopify webhooks): collects AddToCart, InitiateCheckout, AddPaymentInfo, and Purchase from cart, checkout, and order events.
3
Event Enrichment

Each event is enriched

AnyTrack attaches the session’s attribution data, product details (sku, price, quantity), and any available customer data to every event — so each conversion carries the full context ad platforms need.

4
Conversion API

Conversions are sent to your ad platforms

On a Purchase, AnyTrack attributes the conversion across your Dashboard reports. On the Starter plan and above, it sends the enriched event server-side to the Conversion API of your ad platforms.

Sent server-side to
Facebook Ads Conversion API
Google Ads Conversion API
TikTok Ads Events API
AnyTrack Reports & Dashboard

On Starter and above, AnyTrack sends attributed purchases to your connected ad platforms for optimization.

Shopify integration: technical details
Supported features Shopify
Plan Ad platforms need Starter or higher.
All plans
Required
Tracking method Via Webhook
Server-side tracking
Setup method
Webhook URL
Setup time
Less than 5 minutes
  • AddToCart
  • InitiateCheckout
  • Purchase
  • AddPaymentInfo
Event attributes
Conversion Mapping Rename or turn off events.
Yes
Combined Orders Groups upsells with the purchase.
No
Tracking Group Integration reference for AutoTag.
shopify
Tracking parameter Carries the click_id.
atclid

AnyTrack tracks the standard eCommerce journey through two channels: the client-side Tracking Tag in the browser and server-side Shopify webhooks. AddToCart is collected on both for maximum reliability.

AnyTrack eventSourceShopify trigger
PageViewClient-side (Tracking Tag)Page load
ViewContentClient-side (Tracking Tag)Product view
AddToCartClient-side + Server-sidecarts/create, carts/update
InitiateCheckoutServer-side (webhook)checkouts/create
AddPaymentInfoServer-side (webhook)checkouts/update
PurchaseServer-side (webhook)orders/create

Each event maps automatically to the matching event in your ad platform, with no manual setup.

Facebook

AnyTrack eventFacebook event
ViewContentViewContent
AddToCartAddToCart
InitiateCheckoutInitiateCheckout
AddPaymentInfoAddPaymentInfo
PurchasePurchase

Google Analytics 4

AnyTrack eventGA4 event
ViewContentview_item
AddToCartadd_to_cart
InitiateCheckoutbegin_checkout
AddPaymentInfoadd_payment_info
Purchasepurchase

Shopify Sends Conversions to AnyTrack Using Webhook Notifications

Section titled “Shopify Sends Conversions to AnyTrack Using Webhook Notifications”

AnyTrack provides a pre-defined webhook that you can implement with your Shopify account.

https://t1.anytrack.io/hBtoE3hN/collect/Shopify

Four steps take you from install to verified conversions in less than 5 minutes. Each step shows the access it needs.

🔑 Theme code access

Adds the Tracking Tag to your store so AnyTrack can open sessions and collect client-side events like PageView, ViewContent, and AddToCart.

  1. Create a new Property in AnyTrack.

  2. Set the Shop Name and URL (the root domain) and click Next.

  3. Copy the AnyTrack Tracking Tag.

  4. In the Shopify admin, edit the theme code.

  5. Open the Theme Liquid file and paste the Tracking Tag in the head section.

  6. Save the Theme Liquid file.

    Add the AnyTrack tracking tag to the Shopify theme
  7. Install the AnyTrack Pixel Helper Chrome extension and confirm the Tag is firing on your store.

Watch this video to install the Tracking Tag on Shopify:

Play YouTube video

Step 2: Add the Shopify integration in AnyTrack

Section titled “Step 2: Add the Shopify integration in AnyTrack”

✅ No special access

Connects your store to AnyTrack and generates the webhook URL you’ll add to Shopify in the next step.

  1. Go to the Integration Catalog and search for Shopify, then click the Shopify card.

  2. Click Install Integration.

    1. Enter a Name (e.g. MyShopify).
    2. Enter your shop URL (or the Shopify admin login URL) and click Create.
AnyTrack documentation screenshot

🔑 Shopify admin (Settings → Notifications)

Creates the five Shopify webhook notifications that send cart, checkout, and order events to AnyTrack server-side.

  1. Copy the Webhook URL from the integration.

    AnyTrack documentation screenshot
  2. In your Shopify admin, go to Settings → Notifications.

  3. Scroll to the Webhooks section and click Create webhook.

    1. Select an event from the required-events list.
    2. Leave the format as JSON.
    3. Paste the AnyTrack Webhook URL.
    4. Set the Webhook API version to the latest stable version (not Shopify’s default unstable).
    5. Click Save webhook.

    Watch this video to add webhook notifications in Shopify:

    Play YouTube video

🔑 Ad account access

Connects each ad platform to AnyTrack and adds UTM parameters to your ads, so AnyTrack can report your orders by campaign. On the Starter plan and above, AnyTrack also sends your tracked conversions to each ad platform’s Conversion API, so the platform optimizes on your real orders. You set up this step in the AnyTrack Dashboard and in your ad accounts. Nothing changes in Shopify.

  1. Connect each ad platform you advertise on. Follow its setup guide:
  2. Add the UTM Tracking Template of each ad platform to your ads:

These aren’t required to start tracking, but they keep your reporting clean:

  • Time Zone — match your shop’s time zone in the AnyTrack property settings to avoid reporting discrepancies.
  • Base Currency — set the currency your dashboard reports in; AnyTrack converts all revenue into it.
  • Client-side tracking settings — the defaults deliver optimal performance; only change them if you know what you’re adjusting.

Change the event for subscription renewals

Section titled “Change the event for subscription renewals”

By default, AnyTrack records each Shopify renewal order as a Purchase event. To keep renewals separate from your other orders, rename the Subscription Renewal event. To stop tracking renewals, disable the event.

  1. On the Shopify integration page, find the Shopify Integration Events section.
  2. Find the Subscription Renewal row. You can change only this event. AnyTrack locks the other Shopify events.
  3. Do one of these steps:
    • To rename the event, click the conversion event field in the Subscription Renewal row. Then select another event, such as Upsell, or enter a custom name, such as Renewal.
    • To stop tracking renewals, clear the checkbox in the Subscription Renewal row.
  4. Click Save.

The change applies to the renewal orders that AnyTrack receives after you click Save. AnyTrack shows the new event name in your reports. An ad platform receives the renamed event only if its Conversion Event Mapping includes the new name. By default, the Conversion Event Mapping of Facebook Ads includes neither Upsell nor custom names. Meta then receives no renewals until you map the new name.

This section will enable you to validate the main aspects of your setup.

To validate your setup, wait for a conversion or trigger a test conversion yourself and inspect the Shopify integration’s Events Log.

Inspect the Events Log to see the conversions arriving from Shopify.
Inspect the Events Log to see the conversions arriving from Shopify.

Shopify conversion payload example

{
"id": 40881068146749,
"created_at": "2024-08-25T21:11:38+00:00",
"total_price": "27.72",
"subtotal_price": "23.90",
"total_tax": "3.82",
"currency": "USD",
"source_name": "web",
"line_items": [
{
"title": "Cow Mug Custom Message",
"variant_title": "11oz / Black",
"price": "11.95",
"quantity": 1,
"sku": "24675843150437141759",
"properties": {
"_atclid": "mYC8t8gvBdZ2ZmWOf5Jm2hP9gptNB4UEgx"
}
}
],
"note_attributes": [
{
"name": "__atclid",
"value": "mYC8t8gvBdZ2ZmWOf5Jm2hP9gptNBCIGGr"
}
],
"x-Shopify-shop-domain": "0ae3b8-c6.myshopify.com",
"x-Shopify-topic": "checkouts/create",
"x-Shopify-api-version": "2024-07"
}

If you encounter issues, check the following:

  1. Verify the AnyTrack Tag is in the head section of your shop
  2. If you’re on the Free plan, check the monthly traffic limit in the billing section
  3. The Free plan does not include Conversion API for ad platforms
  4. Confirm you’ve followed the default integration settings
  5. Install the AnyTrack Pixel Helper Chrome extension to verify the tag is active

Common Questions

FAQ was last reviewed on 2026-06-15

Do I need to remove my existing Meta Pixel (Facebook pixel) or other Shopify conversion apps?
Yes, after AnyTrack delivers, on the Starter plan and above. AnyTrack acts as your tag manager and sends conversions to your ad platforms through the Conversion API. Verify that each ad platform receives conversions from AnyTrack, then remove any other integration that sends the same conversions (a native Shopify–Meta connection, a pixel app, or a hardcoded pixel). Otherwise you get duplicate conversions in your ad account. On the Free plan, keep your existing pixel: AnyTrack does not send conversions to ad platforms on Free.
Does the Shopify integration work on the Free plan?
Yes. You can install the Tag and track events on the Free plan. Sending conversions to your ad platforms through the Conversion API requires the Starter plan or above.
Does AnyTrack track the Shopify checkout?
Yes. Checkout and payment events (InitiateCheckout, AddPaymentInfo) and the final Purchase are collected server-side through Shopify webhooks, so they are tracked reliably even though the AnyTrack Tag does not run on Shopify's hosted checkout pages.
Can I import past conversions into AnyTrack?
No. AnyTrack can only track conversions that follow a visitor session after the integration is installed. Historical orders placed before setup cannot be imported.
How do I stop the AnyTrack click ID from showing in cart line items?
Shopify hides any line-item property that begins with an underscore (e.g. _atclid) from customers at checkout. If your theme does not follow this convention and the value appears, follow the Remove Line Item Properties guide to adjust your theme code.
Why don't Shopify and AnyTrack numbers match exactly?
Some difference is normal across analytics tools. It comes from how each platform defines a session, whether visitors allow cookies and JavaScript, ad blockers, and reporting time zones. AnyTrack combines client-side and server-side tracking to collect as much as possible. Use the Events Log to inspect what arrived.
The conversion event name isn't what I expected. Can I change it?
On the Shopify integration page, you can rename or disable only the Subscription Renewal event. AnyTrack locks the other Shopify events. See Change the event for subscription renewals. To change the event that an ad platform receives, edit the Conversion Event Mapping of that ad platform. The standard events already map to the matching events on each ad platform, so change a mapping only if you understand the effect in that platform's event manager.