Getting started Doc #2 Reviewed Nov 28, 2026
Quickstart: your first gateway
Create a gateway, connect Meta's Conversions API, send your first server-side event and check what Meta replied.
This guide sets up the Anacoic gateway (Fix): your site sends events to it, and it sends them on from the server. Meta’s Conversions API works today; Google Ads is available on request; TikTok, Snapchat, LinkedIn, Pinterest, Reddit, X and Microsoft are in beta: not yet tried with a real ad account.
What you need
- A Meta Pixel ID (or a TikTok Pixel ID)
- Access to your website’s code or tag manager
- An Anacoic account (sign up free)
Step 1: create a gateway
- Sign in to the app and open Fix in the sidebar.
- Under Add a gateway, enter the gateway hostname, for example
track.yourstore.com. - Choose Add gateway. The guided setup opens.
Until a custom domain is set up, send requests to the shared endpoint with your gateway ID in a header:
POST https://edge.anacoic.com/track
Header: X-Gateway-ID: YOUR_GATEWAY_ID
Step 2: connect an ad platform
Open the gateway, then Destinations. Under Integrations, choose Connect on the platform, switch on Enable integration, fill in its fields and choose Save configuration.
Meta Conversions API
- Pixel ID: in Meta Events Manager
- Access token: in Events Manager, under your dataset’s Settings, then Generate access token
TikTok Events API (beta)
- Pixel ID: in TikTok Ads Manager
- Access token: generated in TikTok Ads Manager for the Events API
TikTok delivery is in beta: check the first deliveries in the gateway’s log and in TikTok Events Manager.
Step 3: install the tracking code
Open the gateway’s Setup tab and copy the snippet under Install the tracking code.
JavaScript
Add this to your website’s <head>:
<!-- Anacoic tracker -->
<script src="https://edge.anacoic.com/v1/ana.js"
data-gateway="YOUR_GATEWAY_ID"
data-emq="optimize"></script>
Then send events:
// Page views are sent automatically by the tracker
anacoic.track('PageView');
// A purchase
anacoic.track('Purchase', {
value: 99.99,
currency: 'USD',
content_ids: ['SKU-123'],
user_email: 'customer@example.com' // hashed at the gateway
});
From your server (Node.js)
const response = await fetch('https://edge.anacoic.com/track', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Gateway-ID': 'YOUR_GATEWAY_ID'
},
body: JSON.stringify({
event_name: 'Purchase',
event_id: 'order_10482', // the same ID the browser sends, so platforms count it once
custom_data: {
value: 99.99,
currency: 'USD'
},
user: {
email: 'customer@example.com' // hashed with SHA-256 at the gateway
}
})
});
Step 4: add a custom domain (Pro and up)
Custom domains are on Pro and Agency. They let the gateway run on your own subdomain:
- Open the gateway, then Advanced, then Domains.
- Add a subdomain such as
metrics.yoursite.com. - Add the CNAME record to your DNS:
metrics.yoursite.com → gateway.anacoic.com - Wait for DNS to update (usually 5 to 30 minutes).
- Copy the snippet again from the Setup tab. Once the domain is verified, it loads from your subdomain and sends events there.
Tip: with a custom domain, tracking requests go to your own domain like the rest of your site, so blockers that look for third-party tracking domains don’t stop them.
See Custom domain setup for more.
Step 5: check it works
- In the gateway’s Setup tab, under Send a test event, send one.
- Open Diagnostics, then Delivery log, and find the event with each destination’s status.
- Check in Meta Events Manager (or TikTok Events Manager) that the event arrived.
A working log looks like this: each request with Delivered and each destination’s status, and the checks at the top marked Verified once enough traffic has gone through.
If something’s wrong
Events don’t show in Meta
- Check that your access token hasn’t expired.
- Look for the error message in the delivery log.
- Check the Pixel ID.
403 errors
- If domain locking is on, add your website to the allowed origins under Diagnostics, then Security controls.
Duplicate events
- Send the same
event_idfrom the browser and the server for one purchase, and a different one for each purchase.
More in Troubleshooting.
Next steps
- Set up domain locking under Diagnostics, then Security controls.
- Add a webhook destination under Destinations, then Custom destinations.
- To see whether Meta recorded what your store sold, set up Watch (early access).