Server-side conversion tracking for Magento 2
Give Meta and Google every Magento 2 order.
Server-side conversion tracking for Magento 2 and Adobe Commerce: the AxiTrace module sends each order from your own server once it reaches Processing, however and whenever it was paid. The order goes to Meta, Google, TikTok and 6 more platforms, so they learn from every sale and show your ads to the people most likely to buy.
- For Luma and Hyva themes
- Free up to 10,000 visits a month
- No credit card
Sent to the ad platforms Lost in the browser Recovered with AxiTrace
What a pixel on Magento misses
A pixel on Magento reports a sale only from the success page.
Tracking scripts on Magento run in your buyer's browser. That leaves gaps, and together they hide up to 30% of your orders from Meta and Google.
-
1 in 3
shoppers uses an ad blocker
The pixel never loads. For Meta and Google that visit, and the order it ends with, never happened.
-
1 page
has to open for the pixel to report a sale
The checkout success page. A buyer who pays at PayPal or on the bank's site and closes the tab never opens it, so the pixel never fires.
-
2023
is when Facebook archived its Magento extension
Since February 2023 Magento 2 stores have had no maintained Conversions API integration from Facebook. The AxiTrace module fills that gap.
How it works on Magento 2
Magento sends the order once it reaches Processing.
The module watches every order save in Magento. When an order moves into the Processing state, your server puts the purchase on Magento's message queue and the next cron run sends it to AxiTrace, so the checkout never waits. AxiTrace finds the ad click behind the order and delivers it to each ad platform through that platform's conversions API.
- Counted when it is Processing A card payment gets there at checkout. A bank transfer or cash on delivery order gets there when you invoice it, days later, and is sent then.
- The ad click travels with the order When the order is placed, the module stores the visitor and every ad click id on the order itself. A purchase confirmed later by a payment webhook or an admin invoice still finds its ad.
- Sent once, retried if it fails Each order has one event id, kept in a log with a unique key, so it is never sent twice. A failed send is retried every 15 minutes.
- Payment Bank transfer, paid on day 3
- Order state Processing
- Picked up on sales_order_save_after
- Sent through Magento's message queue
- Browser pixel Buyer left three days ago
- Sent by Your server, on the next cron run
- Event id One per order, never sent twice
- Visitor and click ids Stored on the order when it was placed
- Ad click behind the order Meta Ads, Prospecting 12 days before the purchase
- Product costs From the Cost attribute
- MetaConversions API Accepted fbc click id, hashed email and phone
- Google AdsData Manager API Accepted gclid, hashed customer data
- TikTokEvents API Accepted Hashed email and phone
- GA4Measurement Protocol Accepted GA client id, session id
The buyer chose a bank transfer and the money arrived three days later. You invoiced the order, it moved to Processing, and your server sent it. No browser was open to report it.
AxiTrace ties the order to the visits before it and to the ad that started them, then adds what each platform needs to recognise the buyer.
Every platform gets the order once, through its own API. Pinterest, Reddit, LinkedIn, Microsoft Ads and OpenAI Ads are served the same way.
What changes
One module feeds every ad platform the same orders.
Ad platforms bid on the purchases they are told about. Give them all of your orders, and they look for more people like your real buyers.
-
Ad delivery
More buyers for the same budget
Meta, Google and TikTok stop learning from only part of your customers. The Event feed lists every order sent and each platform's answer.
-
Reports
ROAS counted from Magento's grand total
Spend comes from Meta, Google Ads and TikTok, revenue from the orders in your Magento admin, with tax and shipping as you charged them. One table shows what each campaign brought in.
See the ads dashboard -
Profit
Profit from the Cost attribute
Add your secret key and the module sends the Cost of each product sold, plus credit memos and cancellations. Each order shows what it left, each campaign its POAS next to ROAS.
See profit tracking
~13%lower cost per result for advertisers who add the Conversions API to their pixel, according to Meta.
Setup
One Composer command and about ten minutes.
-
Install the module
Composer adds axitrace/module-tracking, and the Hyva package if your theme is Hyva. A ZIP for app/code works too. You need command-line access to Magento.
-
Paste your public key
In Stores, Configuration, AxiTrace. Test Connection turns green within seconds when the key is valid and your server can reach AxiTrace.
-
Connect your ad accounts
Sign in to Meta, Google Ads and TikTok, or paste an access token for the other platforms. Every connection has a test button.
-
Place a test order
Once it reaches Processing it is in AxiTrace within a minute or two, with the visit that led to it.
The facts
AxiTrace for Magento 2, in short.
- Module
-
axitrace/module-tracking, free and open source under the MIT licence. Installed with Composer or as a ZIP.
See the source on GitHub - Requirements
-
Magento Open Source or Adobe Commerce on-premise 2.4.6, 2.4.7 or 2.4.8, PHP 8.1 to 8.4 and Magento cron. Adobe Commerce as a Cloud Service is not supported.
- Themes
-
Luma out of the box. Hyva with the companion package axitrace/module-tracking-hyva, built on Alpine.js and compatible with a Content Security Policy.
- Plan
-
Every plan, including Free: 10,000 visits a month, with no credit card.
See pricing - Sends orders to
- What is sent
-
Product and category views, carts, checkouts started, payment details added and purchases. The purchase comes from your server.
- Counted as a sale
-
When the order moves into Processing. A Pending order, such as cash on delivery before you invoice it, is not sent.
- Consent
-
One switch in AxiTrace. It follows Magento's Cookie Restriction Mode, Google Consent Mode v2 and TCF. An order from a buyer who refused is stored for your reports and sent to no ad platform.
- Costs and refunds
-
Add your secret key and the module sends each product's Cost attribute, plus credit memos and cancellations, for profit and POAS.
- Your data
-
Stored in the EU, on Google Cloud in Warsaw, under a data processing agreement.
Frequently asked questions
Something else on your mind? Ask us directly
Does AxiTrace replace the old Facebook Magento plugin?
Facebook archived its official Magento extension in February 2023, leaving Magento 2 merchants without a maintained Conversions API integration. The AxiTrace module fills that gap: it sends every order from your server to the Facebook Conversions API, and the same order to Google Ads, TikTok, GA4, Reddit, OpenAI Ads, Pinterest, LinkedIn and Microsoft Ads.
How does server-side tracking work on Magento 2?
The AxiTrace module observes order saves on your Magento server. When an order moves into the Processing state, it puts the purchase on Magento's message queue, and the next cron run sends it to AxiTrace. AxiTrace then delivers it to every ad platform you connect, through their conversions APIs. Because the order comes from your server and not from the browser, it arrives even when an ad blocker, Safari or a closed tab stopped the pixel.
When is a bank transfer or cash on delivery order counted?
When it reaches Processing, which for these payment methods is usually the moment you create the invoice. Until then the order is Pending and nothing is sent. The visitor and the ad click ids were stored on the order when it was placed, so a purchase confirmed days later, in the admin or by a payment webhook, is still credited to the ad that brought the buyer.
Does it work with Hyva and with Magento's Content Security Policy?
Yes. Luma is supported by the core module. For Hyva, install the companion package axitrace/module-tracking-hyva: it replaces the storefront scripts with Alpine.js components that need no jQuery or RequireJS. On Magento 2.4.7 and newer, where the checkout enforces a Content Security Policy, the module adds your tracking domain to the policy by itself.
What about cookie consent on a Magento store?
Consent is one switch in your AxiTrace workspace. When it is on, the tracking script waits for Magento's own Cookie Restriction Mode, or for Google Consent Mode v2 or TCF if you use another banner. The purchase your server sends carries the buyer's decision too: an order from a buyer who did not allow cookies is stored for your revenue reports, but its advertising identifiers are removed and it is sent to no ad platform.
Do I need a developer to install it?
You need someone with command-line access to your Magento server: the module is installed with Composer, or unpacked from a ZIP, and enabled with bin/magento. For a person who deploys Magento it is about ten minutes. Everything after that happens in the Magento admin and in AxiTrace, with no code.
Is there a free plan for Magento?
Yes. The module is free and open source, and the Free plan covers 10,000 visits a month with all 9 ad platforms and no credit card. When you need more, paid plans start at $99/mo billed annually.
Put your Magento orders back in front of Meta and Google.
Free up to 10,000 visits a month. Pro and Business are free for 14 days, with no card and no automatic charge.
An agency, or more than 3M visits a month? Talk to us
- Data stored in the EU
- GDPR, with a DPA
- On the Shopify App Store
- Plugin on WordPress.org
- In ChatGPT and Claude