Skip to content

Shopify Integration

The AnyTrack Shopify integration simplifies conversion tracking and attribution for eCommerce stores by automatically tracking purchases and key events, and sending data to platforms like Google Ads, Facebook Conversion API, and TikTok Ads.

This guide takes you from install to verified conversions.

AnyTrack collects the full customer journey, enriches it, and sends it to your ad platforms 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 and sends the enriched event server-side to your ad platforms’ Conversion API.

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

100% of your conversion data feeds your ad platform's machine learning and automatic optimization.

ReferenceValueInformation
Tracking GroupShopifyThe Tracking Group reference can be used to activate AutoTag.
Subid ParameteratclidThe Subid Parameter used to pass the AnyTrack click_id.
Tracking MethodWebhook-

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 — 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 — about 15–20 minutes total. Each step shows the time and access it needs.

⏱️ ~5 min · 🔑 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.

Step 2: Add the Shopify integration in AnyTrack

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

⏱️ ~2 min · ✅ 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

⏱️ ~5 min · 🔑 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:


⏱️ ~5 min · 🔑 Ad account access

Sends your tracked conversions to each ad platform’s Conversion API so the platform can optimize on 100% of your data. This is configured entirely in the AnyTrack Dashboard — nothing to set up in Shopify.

Open each ad platform you advertise on and follow its setup guide:

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.

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 conversion logs.

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 Facebook pixel or other Shopify conversion apps?
Yes. AnyTrack acts as your tag manager and sends conversions to your ad platforms through the Conversion API. Remove any other integration that sends the same conversions — a native Shopify–Meta connection, a pixel app, or a hardcoded pixel — otherwise you'll get duplicate conversions in your ad account.
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 a paid plan (Starter 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 Integration Event Log to inspect what arrived.
The conversion event name isn't what I expected. Can I change it?
You can edit the Event Mapping on the Integration page, but it is not recommended — the standard events are already mapped to the matching events in your ad platforms. Only change the mapping if you understand the impact on your ad platform's event manager.