Outcome
Your Shopify store sends its events to the gateway, and you can see each delivery and each platform's reply in one place.
One gateway for the store, on a subdomain you control, with a log of each delivery and the same setup for every ad platform.
Supported events
- Page view
- Product view
- Add to cart
- Checkout start
- Purchase
Destinations
- Meta Conversions API
- Google Ads (Data Manager API), on request
- TikTok Events API (beta)
- Snapchat Conversions API (beta)
- LinkedIn Conversions API (beta)
- Pinterest Conversions API (beta)
- Reddit Conversions API (beta)
- X Conversions API (beta)
- Microsoft Advertising Conversions API (beta)
- Custom webhooks
Before you start
Prerequisites
- An Anacoic account and a gateway
- Access to your Shopify theme or theme app extensions
- The IDs and access tokens for the ad platforms you plan to use
- Best fit
- Shopify brands and ecommerce agencies
Setup flow
Setup steps
-
Create a gateway for the store
Use one gateway per store, so each store's deliveries, domain and settings stay separate.
-
Install the tracker or call the server API
Add the ana.js tracker to the storefront, or send events to the gateway's /track endpoint from your backend.
<script src="https://edge.anacoic.com/v1/ana.js" data-gateway="YOUR_GATEWAY_ID"></script> -
Connect the ad platforms you use
Start with the platforms you spend on most. Send a test event to each one and check its reply in the delivery log.
-
Move to your own subdomain
Once deliveries look right, add a custom domain so the store sends events to a subdomain you control.
FAQ
Questions before you start
Do I need a Shopify app?
Not for the gateway: add the tracker to your theme or send events from your backend, then set up destinations in the app. Watch, which checks your orders against Meta, connects through the Anacoic Shopify app with one permission, to read orders. Watch is in early access.
Can I run this next to my existing pixels?
Yes. Run both side by side first, with the same event_id on browser and server events so platforms count each purchase once. Retire the browser-only setup once deliveries are confirmed.
Recommended next step
Start with one event, then add the rest
Set up the gateway, get one destination working with a test event, then add more once the delivery log shows the traffic you expect.
-
1. Create a gateway
Keep the new setup separate while you test it.
-
2. Send a test event
Check the request, the security checks and each destination's reply.
-
3. Move real traffic
Switch your real events over only once the delivery log shows what the test did.