- What the Conversions API fixes
- Why Kartra doesn't make this easy
- The Kartra Facebook conversions integration, step by step
- A worked example: the $497 course funnel
- Event Match Quality and the limits of the Conversions API
- Mistakes that quietly break the connection
- When to bring someone in instead
- Frequently asked questions
- Further reading
Kartra doesn't have a native, one-click Facebook Conversions API integration, so you send its purchase and lead events to Meta yourself: Kartra's outbound API pings a URL on each sale or optin, and a piece of middleware (usually Stape or a server-side Google Tag Manager container) reshapes it and posts it to Meta's servers alongside your browser pixel. The work is six jobs: an access token from Events Manager, the middleware, the Kartra notification, field mapping with hashed email and phone, a shared event ID, and a test purchase before you trust any of it.
What you get for that afternoon is a more complete count. In the hypothetical funnel further down, Meta's reported cost per purchase falls from about $38 to about $24 on the same spend, purely because server events let it see more of the sales. Below are the six setup steps, an example of the data you send, how to test it and the mistakes that break it quietly.
What the Conversions API fixes
The Facebook pixel sits in the visitor's browser and fires when something happens on the page, a purchase, an optin, a page view. The problem is that browser privacy settings and ad blockers can stop some of that data before it ever reaches Meta. You run ads, people buy, and Meta's Ads Manager quietly under-reports how many of them converted.
The Conversions API sends the same event, but from your server (or middleware) directly to Meta, outside the browser entirely. A blocker in the visitor's browser never sees that request. Anyone who'd rather have this run outside the browser without building it can compare server-side tracking tools. You still run the pixel, you're not replacing it, you're backing it up with a second, more reliable channel. Meta describes this pixel plus server pairing as a redundant setup, and it deduplicates the two so it doesn't count the same purchase twice, as long as the event ID and event name match on both.
Why Kartra doesn't make this easy
Kartra takes your Facebook pixel ID in its tracking settings, so the browser half is simple. The server half is missing: Kartra has no built-in Conversions API connection and no switch that turns on server-side tracking to Meta. If a blog post implies there is one, it's wrong, or it's describing a third-party app doing the work and calling it native. That's why the route below runs through your own middleware rather than a Kartra setting.
What Kartra does have is a solid webhook system inside Automations. That's your route in. You trigger a webhook whenever a specific event happens, a purchase, a tag being added, an optin, and that webhook sends a payload of data to a URL you specify. The job is getting that payload reshaped into the format Meta's Conversions API expects, and that's what the middleware step is for. If the terms are new to you, the difference between an API and a webhook is explained simply.
The Kartra Facebook conversions integration, step by step
- Step 1: Get your Conversions API access token. This is a computer job in Events Manager. Meta's Conversions API get-started guide gives the route: choose your Pixel, select the Settings tab, find the Conversions API section and click Generate access token under Set up manually. That link only shows for people with developer privileges on the business, so if you can't see it, ask whoever owns the Business account to give you that access first. The token travels with every API call you make, so keep it private: treat it like a password, because anything holding it can send events in your name.
- Step 2: Set up middleware. Most people use Stape.io, which runs a hosted server-side Google Tag Manager container for you. Stape prices its plans by how many requests you send a month and changes them from time to time, so check its pricing page for today's tiers before you budget. For a single Kartra funnel, start on the smallest plan that covers your monthly sales and optins, and move up only when you hit the limit. If you already have someone technical on the team, you can run your own server-side GTM container instead and skip the monthly fee, but it needs maintaining.
- Step 3: Build the webhook in Kartra. Start in your middleware: create the incoming endpoint that will receive Kartra's data (in Stape that sits inside your server container) and copy the URL it gives you. Then, in Kartra, go to Integrations > My API > Outbound API, paste that URL and choose the events you want sent to it; Kartra's help article on activating the outbound API lists examples such as when a transaction is processed and when a lead fills in an opt-in form, and you can add several URLs and several events per URL. My suggestion for what the webhook should carry: the buyer's email, their name, the order total and the transaction ID, if your payload includes one. The transaction ID matters most, because it makes a ready-made event ID (Step 5) that your pixel event can use too. Kartra sends each notification as a raw body POST JSON object. In the example on that help page, the customer sits in a lead block with fields named first_name, last_name, email, phone_country_code, phone, ip and country, and an action field names what happened. Transaction notifications add details such as the product and transaction amount, so send one real test notification and read the exact field names your middleware receives before you map anything in Step 4. Note which field in that test payload carries the order or transaction ID: that exact field is what you map to event_id in Step 5 and print on the thank-you page for the pixel.
- Step 4: Map the fields. Meta's Conversions API needs event_name (Purchase, Lead, CompleteRegistration), event_time, a user_data block (email and phone, both hashed with SHA-256, never sent in plain text; Meta's customer information parameters page marks both as hashing required, asks for the email trimmed and lowercased first, and says a phone number must include its country code), and a custom_data block with value and currency. Kartra's webhook payload has most of this raw, your middleware tool reshapes it into Meta's format. The customer information parameters reference has a worked example of normalising before the hash: [email protected] becomes [email protected], and the SHA-256 hash of that is 62a14e44f765419d10fea99367361a727c12365e2520f32218d505ed9aa0f62f. If your middleware produces the same string from that test address, its hashing is right. Phone numbers get the same treatment: strip symbols, letters and leading zeros and put the country code in front, so a US number starts with 1. Kartra already splits phone_country_code from phone, so your middleware joins the two and drops the plus sign before hashing. Here's the shape of what reaches Meta for one sale, with placeholder values only (your middleware template sets the exact format):
{ "event_name": "Purchase", "event_time": "<Unix timestamp of the sale>", "event_id": "order-10482", "user_data": { "em": "<SHA-256 hash of the buyer's email>" }, "custom_data": { "value": 497, "currency": "USD" } }The event_id here is the same one the pixel sends for that purchase, which is what Step 5 is about.
- Step 5: Add a shared event ID. This is the step people skip and then wonder why their reported sales double. Generate the same unique ID for both the browser pixel event and the server event for that same purchase. Two copies of one sale only merge when the pixel's eventID equals the server event's event_id and the event names match as well, according to Meta's deduplication page. Meta's developer documentation also shows where the event ID goes in the pixel code, so your Kartra thank-you page and your middleware can both pass the same order ID for the same purchase. Without that shared ID, you'll see one real sale logged twice in Ads Manager.
- Step 6: Test before you trust it. Open Events Manager, go to Test Events, make a real (or test-mode) purchase through your Kartra checkout, and confirm the event shows up tagged as coming from the server, not just the browser. Then open the server event and check that the hashed email arrived, that value and currency are filled in, and that the event_id is your Kartra order ID rather than blank. If the test fails, work through it in order. Nothing arrives at all: confirm the webhook fired in Kartra, check your middleware's logs for the request, then check the access token. The server event arrives but your sale is counted twice: compare the event_id on the pixel event and the server event, because they must match exactly.
If you run ads from tools other than Kartra as well, the same server-side idea applies, and my guide to the Meta Conversions API covers it beyond this one platform.
A worked example: the $497 course funnel
The numbers in this example are hypothetical, chosen to show the arithmetic. Say you run an online course priced at $497, sold through a Kartra checkout page, with $50 a day going into Meta ads pointing at a cold audience. Over 14 days that's $700. Before setting up the Conversions API, Meta counts 18 purchases, so Ads Manager reports $700 / 18, a cost per purchase of around $38, but your Kartra sales dashboard shows more purchases than that number accounts for. Some of those buyers had browsers that blocked the pixel, so their purchase event never reached Meta.
You wire up the webhook, point it through Stape, map the purchase event with a hashed email and the shared event ID, and leave it running for two weeks. Meta's reported purchases climb because it's now catching events the pixel alone was missing, and once it counts 29 purchases for the same $700, the reported cost per purchase in Ads Manager drops closer to $24 ($700 / 29). Nothing about your actual sales has changed, you've sold the same course at the same price to the same number of people. What's changed is that Meta can now see more of what's really happening, which also gives its delivery system more purchases to learn from. Any lift in real results shows up in your Kartra sales figures, so judge it there.
Running sales through several tools, not just Kartra? Then our Segment alternatives guide covers collecting their events in one place.
Event Match Quality and the limits of the Conversions API
A lot of posts on this topic sell the Conversions API as a fix that recovers "100% of lost conversions." It doesn't. How well Meta can tie a server event to a real person depends on the identifying details you send, which is why the hashed email and the phone number with its country code matter so much. Your match rate depends on what your Kartra forms collect, so a benchmark from someone else's funnel tells you little. You're improving attribution, not restoring full visibility, and anyone promising otherwise is overselling the fix. The hard limit is simple: a visitor whose browser blocked the pixel and who never gave you an email or phone number leaves nothing to match on, server side or not. Treat the improved numbers as better, not complete.
The other thing worth saying plainly: if you've got low order volume, under a few dozen purchases a month through Kartra, the Conversions API is still worth doing once, but it won't transform a struggling funnel into a working one. It improves optimisation on an offer that already converts. It does nothing for an offer that doesn't. For the platform that builds the funnel itself, my comparison of best funnel builders sets the main choices side by side.
Still choosing a platform? See Systeme.io alternatives.
Want AI doing the heavy lifting in your marketing?
I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.
Mistakes that quietly break the connection
- Forgetting the shared event ID, which inflates your reported conversions and tricks you into thinking an ad is working better than it is.
- Pointing the webhook at the wrong trigger, so you're sending "optin" data labelled as "purchase," which feeds Meta the wrong events and skews your ad optimisation at the same time.
- Never checking Test Events after setup and assuming it's working because no error message appeared.
- Setting it up once and never looking again. Put five minutes in the diary once a month to run one test purchase through Test Events and confirm the server event still lands.
- Leaving the access token in a public page, a shared doc or a screenshot in a help forum. Anyone with it can send events as you. If it does leak, generate a new token in Events Manager, paste it into your middleware, and confirm a test purchase still lands before you assume the old one is out of use.
- Running test purchases through your live setup as if they were real sales, so fake orders land in the data your ads optimise on. Run them through Test Events, and refund or remove the test order in Kartra afterwards.
- Leaving an old URL in Kartra's Outbound API settings after you change middleware. Remove or repoint it the same day, or every sale is sent twice from two places.
If you'd rather pay for a dedicated attribution tool than build this yourself, compare the Hyros alternatives before you commit to one.
When to bring someone in instead
If reading the six steps above made your stomach sink a bit, that's a fair reaction, this sits at the join between marketing and basic development work, and getting the field mapping wrong doesn't throw an obvious error, it just quietly skews your ad data for weeks before anyone notices. If you'd rather hand the whole thing to someone who does this kind of integration regularly, that's exactly the sort of practical, fiddly setup work an AI implementation coach can wire up in a single working session, tested and documented, rather than you guessing your way through Events Manager at 11pm.
Because a phone number only helps matching when it's real and carries its country code, it's worth checking numbers at sign up, and here's my look at phone number verification APIs.
Frequently asked questions
Why are my Kartra sales higher than what Meta reports?
Because browser tracking misses some buyers, through ad blockers and privacy settings, so the pixel under-counts. Sending the same purchase from the server fills some of that gap but not all of it, so expect the two numbers to move closer together rather than match.
What should I use as the event ID for a Kartra purchase?
Use the Kartra transaction or order ID on both the pixel event and the server event, so Meta can match the pair and count the sale once. That's a setup recommendation, not a Kartra rule, but it saves you inventing and storing a separate ID.
How much does it cost to connect Kartra to the Conversions API?
The running cost sits in the middleware. Stape bills by monthly request volume, so check its pricing page on the day you sign up; a single Kartra funnel usually sits at the low end. Running your own server-side GTM container avoids the subscription but swaps it for hosting costs and someone's time to maintain it.
Will this increase my actual sales?
Not directly. It improves the data Meta sees, which usually improves ad optimisation and lowers your reported cost per purchase over a few weeks, but it doesn't change conversion rates on your checkout page or the demand for your offer.
Do I need to hash emails and phone numbers myself?
Yes, or your middleware must do it for you before the request leaves. Both fields are marked hashing required, and Meta's systems are designed not to accept unhashed contact information, so a plain-text email isn't a weaker match, it's no match.
Does Kartra connect to Facebook Lead Ads?
That's a different job from this one. This setup sends events that happen in Kartra (sales and optins on your own pages) up to Meta; pulling Lead Ads form submissions down into Kartra is a separate connection and isn't covered here.
Further reading
Run a business, a brand or a blog? I feature tools, products and expert guest posts for an audience of 15,000. See how it works


