Search

Google Ads Server-Side Tracking for Magento 2, Shopware 6 and Lightspeed

Send order profit to Google Ads from Magento, Shopware 6 or Lightspeed eCom. Compare a manual Data Manager integration with Product Metrics.

By , Founder
Updated 8 min read

Server-side purchase tracking sends a confirmed store order to Google Ads from a server. Magento 2, Shopware 6 and Lightspeed eCom C-Series expose paid orders through different routes.

Which server-side setup fits your store?

Use Google’s Data Manager API if you want to build and maintain the upload yourself. Product Metrics reads confirmed orders from Magento 2, Shopware 6 and Lightspeed eCom C-Series and sends profit as a conversion value after you connect Google Ads and set up costs.

Platform Manual setup with Data Manager Product Metrics setup
Magento 2 / Adobe Commerce Read paid orders from the REST API and upload them Developer installs the Magento module. Profit uses cost stored on the order line
Shopware 6 Send a Flow Builder webhook from an Evolve or higher plan with Shopware Commercial Pair the plugin with a sales channel. Profit uses the line’s purchase price
Lightspeed eCom C-Series Poll paid orders through the API and run the upload Connect the store API and Cloudflare gateway. Profit uses the cost price on each order line

Key takeaways

  • Since June 15, 2026, new offline purchase uploads must use Google Ads Data Manager, not the legacy Google Ads API path.
  • Profit on ad spend (POAS) works when you send profit as the conversion value; compute it server-side to avoid browser loss and keep values consistent with finance.
  • Magento 2/Adobe Commerce exposes orders at REST /V1/orders, which you can fetch and transform into Google Ads conversions.
  • Shopware 6 can call a webhook on order events via Flow Builder, making a clean trigger for server-side tracking.
  • Lightspeed eCom C‑Series supports API keys and rate limits suitable for polling paid orders, which you can forward to Data Manager.

How Google Ads accepts server-side purchases in 2026

Google Ads accepts server-side purchase events from advertisers through Data Manager. For new integrations, the Google Ads API’s UploadClickConversions path is gated and Google directs you to Data Manager; existing integrations continue while you migrate. On June 15, 2026 this change took effect globally.

  • Example: a headless storefront sends order_id, currency and profit value to Data Manager with a matching identifier such as GCLID.
  • Google’s offline click conversion migration notice describes the 15 June 2026 change and explains which existing integrations can continue to use UploadClickConversions.
Flow diagram: Lightspeed polls orders with an API key, Shopware 6 fires a Flow Builder webhook and Magento 2 serves GET /V1/orders; an endpoint adds profit and identifiers and uploads to the Data Manager API
Each platform only needs its own trigger; from your endpoint onwards the upload to Google Ads through the Data Manager API is the same.

How to send orders from a custom webshop to Google Ads via API

You can implement server-side purchase tracking without a tag-based checkout dependency.

  1. Capture identifiers at click or checkout
  • Store GCLID, GBRAID or WBRAID with the session or order where permitted. Set consent defaults before measurement and update them when the shopper makes a choice. With Basic Consent Mode, Google tags are blocked until the shopper grants consent. With Advanced Consent Mode, tags load with defaults and can send cookieless pings when consent is denied, subject to your policy and applicable requirements. Carry the consent state to the server and verify it for both choices. Check ad_storage, analytics_storage, ad_user_data and ad_personalization.
  1. Compute profit server-side
  • Value = revenue excluding tax − product cost − shipping − payment and handling − expected returns.
Worked example of profit as the Google Ads conversion value: €100 revenue excl. tax minus €45 product cost, €6 shipping, €4 payment and handling and €5 expected returns leaves €40. Illustrative data
Illustrative data: a €100 order sends €40 as its conversion value once costs and expected returns come off, which is the number POAS bidding needs.
  1. Map to a conversion payload
  • Required: order timestamp, currency, value (use profit for POAS), transaction_id, one or more identifiers.
  1. Upload through Data Manager
  1. Reconcile
  • Place a paid test order. Compare its order ID, action, value and currency with the tag request or supported delivery log, then check Google Ads diagnostics. Use Tag Assistant for tag routes and upload diagnostics for API routes. Delivery and attribution are different checks: compare Google Ads and store totals in aggregate after allowing for reporting lag, using the same conversion-time basis, time zone and value definition.
  • Example: a custom Node/Go/Python service enriches an order event with margin then posts to Data Manager’s Google Ads offline conversions endpoint.
  • Number to know: Data Manager is Google’s recommended path for new offline conversions; UploadClickConversions in the Ads API is preserved only for prior adopters. See Google’s migration guidance.

Magento 2/Adobe Commerce server-side tracking using REST

Magento 2 (Adobe Commerce) exposes orders via REST. A server-side Google Ads setup reads the confirmed payment, calculates profit and uploads the order under a stable transaction ID.

Manual setup

  • Read orders from Magento’s REST API and check the payment capture or settlement for the store’s payment method. For example, with bank transfer, Adobe’s invoice workflow records the capture after receipt. Upload after that confirmation. Skip orders still in Pending Payment or Payment Review and test a pending and a paid order. Adobe’s order status guide defines Complete as paid and shipped, so filtering on it delays purchase delivery until shipping.
  • Map the order ID to the transaction ID. Send profit, currency and an eligible matching identifier with the confirmed order through Data Manager.

Setup with Product Metrics

Have your developer install the module with Composer or a ZIP and make sure Magento cron runs. Load the configuration for your store view, then complete Tracking in Product Metrics. The module reads Magento’s order item cost when it confirms the paid order.

Follow the Magento server-side tracking instructions.

Shopware 6 purchase tracking with Flow Builder webhooks

Shopware 6 can fire a webhook on order events, which is ideal for server-side tracking with profit.

Manual setup

  • Flow Builder’s Call URL webhook action requires the Shopware Commercial extension and is available from the Evolve plan. Use the documented state_enter.order_transaction.state.paid trigger.
  • Configure Basic Auth in the webhook action and require the credentials on your HTTPS endpoint. Have the endpoint look up the order and confirm payment before it computes profit, attaches eligible matching identifiers and sends the conversion through Data Manager.

Setup with Product Metrics

Install the Shopware 6 plugin and pair it with the sales channel using a one-time token. Keep the scheduled tasks and message workers running. The connection reads paid orders and uses the purchase price on each order line.

Follow the Shopware server-side tracking instructions.

Lightspeed eCom C‑Series server-side purchase and profit tracking

Lightspeed eCom C‑Series provides an API you can use to fetch paid orders and forward them to Google Ads with profit as value.

Manual setup

  • Create an API key in eCom C‑Series and store it in a secure secret manager.
  • Poll the Orders resource for newly paid orders, or process exports if your flow already produces them.
  • For each order, compute profit, then upload to Google via Data Manager.
  • For example, poll the Orders endpoint every minute and keep a durable upload record keyed by store, order ID, currency and destination action. Store the result for each order. Retry with the same transaction ID so reprocessing does not create another purchase on that action.

Numbers to know (Lightspeed limits you should design for)

  • API rate limits: 300 requests per 5 minutes and 3,000 per hour.
  • API keys per shop: 3.
    These are standard request and key limits. Estimate requests from your own order and page volumes before choosing a polling cadence. Lightspeed C-Series API limits

Setup with Product Metrics

Enter the C-Series API key and secret in Product Metrics, link the shop to a tracking property and connect the Cloudflare gateway. The app registers the webhooks and reads paid orders with their line-item cost prices, so you do not have to run the polling job.

Follow the Lightspeed server-side tracking instructions.

Three cards with the server-side trigger per platform: Lightspeed eCom C-Series polling with 300 requests per 5 minutes and 3 API keys, a Shopware 6 Flow Builder webhook, and Magento 2 GET /V1/orders
Check your Lightspeed polling volume against the request limits, your Shopware plan for webhook access and your Magento payment workflow for a capture signal.

How do you verify profit before switching Google Ads?

Use one paid test order to check the transaction ID, currency and profit before making the profit action primary. On a manual build, compare the value in your upload log with Data Manager diagnostics. With Product Metrics, configure consent and additional costs, then use Check tracking to verify delivery and compare the value with Google Ads.

Product Metrics sends each paid order’s profit, new or returning status and lifetime value server-side to Google Ads, Meta and ChatGPT Ads as you connect each channel.

Google Ads uses the same transaction ID to deduplicate repeat purchases within a single conversion action. A browser tag and a server route can still record the same order separately if they send to different actions, including a Google Analytics 4 import. Keep one primary purchase action in the campaign’s bidding goals. During migration, validate the replacement as secondary and check campaign custom goals, which can still use a secondary action for bidding. Segment Google Ads reports by conversion action before comparing volumes or values.

For adjustments supported by your route and within Google Ads’ adjustment window, test a partial refund with the original transaction ID and action. Check that RESTATE carries the full revised conversion value. Use RETRACT for an eligible fully cancelled conversion. Check the adjustment result before switching bidding.

Grow revenue and profit from every order and every product.

Product Metrics is a profit optimisation platform for ecommerce advertising: one app for server-side tracking, profit bidding, product segmentation and campaign planning across Google Ads, Meta and ChatGPT Ads. It sends each order’s profit, new or returning status and lifetime value to the ad platforms, so merchants can bid on POAS, new customers and LTV. Machine learning segments every product into custom labels for Shopping and Performance Max, and the campaign plan sets out the ideal campaign structure for those segments. A dashboard shows profit, customers, stock and returns.

Compare the free analysis and Pro

Comparison of server-side integration paths

Path Setup effort Resilience to ad blockers Supports profit as value Best for
Browser tag only (gtag/GTM) Low In our lab, 3 of 6 blocker setups stopped both tested Google conversion endpoints. Yes, if the checkout supplies profit Very small stores, trials
Browser-fed server-side GTM Medium The browser still has to generate and deliver the purchase event to the tagging endpoint. Yes Teams already invested in GTM
Data Manager API (direct) Medium The backend delivers independently of the checkout page. Browser-supplied click IDs can still be lost. Yes POAS at scale, multi-platform
Hybrid (tag + Data Manager) Medium The paid-order upload runs independently. Browser events and identifiers still depend on browser delivery and consent. Yes Migration with a separately monitored secondary action

What to do next

Choose your platform in the setup table and verify profit on a paid order before switching bidding.

Sources

Written by

, Founder of Product Metrics

1M+ products analysed · Nominated at the Dutch Search Awards for Best Measurement Campaign (2023) and Best Use of Data (2024)

Linkedin

Keep reading.

Frequently asked questions.

Can I send both revenue and profit to Google Ads?

Yes. Set up separate conversion actions - one with value = revenue, one with value = profit - and use profit as the bidding signal while keeping revenue for reporting.

Do I need GTM if I upload with Data Manager?

No. You can run server-only. That said, keep a lightweight on-page tag to set cookies, collect enhanced conversions identifiers and power remarketing, while purchases come from the server.

How do I validate uploads?

Use Data Manager’s diagnostics and the conversion’s upload history. Reconcile transaction_id against your order system and check identifier completeness and consent flags.

What identifiers should I include for match rate?

Always include transaction_id, value and currency. Add GCLID when available and hashed first-party data where you’re allowed by consent and policy. More valid identifiers typically increase match rates.

See which of your products to push, fix or pause. Start with your own products, or a 30-second estimate.

See what a blocker stops with the ad blocker tracking test. Then see how your products perform once every conversion is counted.

Find your hidden profit30-second estimate · no login
Analyse your products for freeFree analysis, no credit card

Questions, or want to spar about your products? Book a demo: a video call with Berend, then a demo account.