Skip to content

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
20 orders in your storeHow many reach your ad platforms
14of 20 orders reach Meta, Google and TikTok

Sent to the ad platforms Lost in the browser

Sent server to server to Meta, Google Ads, TikTok, GA4, Reddit, OpenAI Ads, Pinterest, LinkedIn, Microsoft Ads

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.
See what each platform receives
Order #10931From Magento to your ad platforms
  • 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

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.

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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
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.

Start Free

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

AxiTrace demoSample store

AxiTrace

Store revenue$42,300last 30 days
Ad spend$9,9755 campaigns on 3 ad platforms
Store ROAS4.24revenue over ad spend
Orders1,223from every source

ROAS next to profit after costs

Store ROAS4.24 Campaign profit+$3,015

Store ROAS counts all revenue. Campaign profit subtracts the product costs and the ad spend of each campaign.

Axi, morning briefing

Two campaigns lose money after costs: Google Shopping and TikTok Video. Meta Prospecting holds a steady profit and is the one to scale in steps.

Store revenue (estimate)
Ad spend (estimate)
Store ROAS (estimate)
Orders (estimate)
What we found on your store
Ad platforms
    Tracking

      ROAS next to profit after costs

      Store ROAS Campaign profit

      Store ROAS counts all revenue. Campaign profit subtracts the product costs and the ad spend of each campaign.

      Example for a store your size Connect your store to see yours
      Axi, morning briefing

        AxiTrace fixes this for

        Connect your store and these estimates turn into your real numbers. Live the same day, without a developer.

        • Server-side trackingRecovers the orders your pixels miss and sends them back to Meta, Google and TikTok.
        • Profit per campaignEvery campaign after product costs, shipping, fees and ad spend.
        • Attribution you can trustFirst click, last click and data-driven, from the orders your store recorded.
        • Click fraud blockingFlags bots and serial clickers. On Business, Auto Exclusion blocks them in Google Ads.
        • Leads and orders with their sourceEvery order and form lead with the campaign that brought it.
        • Axi, your AI advisorTells you every morning what to cut, what to scale and what to check.

        Sample data. In your own account you see your own store.

        (Estimates based on public data. Connect your store to see real numbers.)

        Start Free