---
title: "Google Ads Server-Side Tracking for Magento 2, Shopware 6 and Lightspeed"
description: "Send order profit to Google Ads from Magento, Shopware 6 or Lightspeed eCom. Compare a manual Data Manager integration with Product Metrics."
canonical: "https://www.productmetrics.io/blog/server-side-tracking-lightspeed-shopware-magento"
pageType: article
language: en
publisher: "Product Metrics"
author: "Berend Vrakking"
datePublished: 2026-11-30
dateModified: 2026-12-01
image: "https://www.productmetrics.io/og/blog/server-side-tracking-lightspeed-shopware-magento.png"
---

> Content index: https://www.productmetrics.io/llms.txt

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

## Key takeaways

- A custom build needs a paid-order trigger, a profit calculation and a Google Ads uploader.
- For profit bidding, calculate contribution profit from the confirmed order before you send its value.
- The Product Metrics setup uses a Magento module, a Shopware 6 plugin or a Lightspeed C-Series API connection.

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.

**Set up server-side tracking.** Today: Ad blockers hide your sales. With Product Metrics: Track every sale and improve your campaign performance. Connect the Product Metrics MCP server (https://www.productmetrics.io/mcp) to Claude, ChatGPT, Cursor or VS Code, or run `claude mcp add --transport http product-metrics https://www.productmetrics.io/mcp` in Claude Code ([how the connection works](https://www.productmetrics.io/docs/mcp/connect)). Then ask it: "Set up server-side conversion tracking for my store with Product Metrics, so Google Ads, Meta and ChatGPT Ads get every paid order. Check my setup status first, walk me through each open step, and give me the link when I need to click something." About 60 seconds in Claude, ChatGPT or Cursor.

## 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](https://www.productmetrics.io/blog/poas-tracking-google-ads) after you connect Google Ads and set up costs.

| Platform | Manual setup with Data Manager | Product Metrics setup |
| --- | --- | --- |
| [Magento 2 / Adobe Commerce](https://www.productmetrics.io/docs/tracking/server-side/magento-google-ads) | 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](https://www.productmetrics.io/docs/tracking/server-side/shopware-google-ads) | 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](https://www.productmetrics.io/docs/tracking/server-side/lightspeed-google-ads) | 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)](https://www.productmetrics.io/glossary/poas) works when you send profit as the [conversion value](https://www.productmetrics.io/glossary/conversion-value "Conversion value is the amount you tell Google Ads a conversion is worth, such as sales revenue or profit margin."); 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](https://www.productmetrics.io/glossary/gclid).
- Google’s [offline click conversion migration notice](https://developers.google.com/ads/blog/posts/2026/05/changes-to-offline-click-conversion) 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](https://www.productmetrics.io/images/blog/server-side-tracking-lightspeed-shopware-magento/ssplat-data-manager-flow.webp)

_Each platform only needs its own trigger; from your endpoint onwards the upload to Google Ads through the Data Manager API is the same._

> **Google's guide:** Google's guide to [sending Google Ads offline conversions with the Data Manager API](https://developers.google.com/data-manager/api/devguides/events/google-ads/offline) covers the destinations, hashed identifiers and the ingestion request. For a managed setup, Product Metrics handles the upload from the confirmed store order.

## 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](https://support.google.com/google-ads/answer/9744275), 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](https://support.google.com/google-ads/answer/10000067), Google tags are blocked until the shopper grants consent. With Advanced [Consent Mode](https://www.productmetrics.io/glossary/consent-mode "Consent mode is a Google tag and Google Ads feature that passes each visitor’s cookie and data consent choices to Google, so tags adjust what they collect."), 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`.

2. Compute profit server-side

- Value = revenue excluding tax − [product cost](https://www.productmetrics.io/glossary/cost-of-goods-sold) − 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](https://www.productmetrics.io/images/blog/server-side-tracking-lightspeed-shopware-magento/ssplat-profit-conversion-value.webp)

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

3. Map to a conversion payload

- Required: order timestamp, currency, value (use profit for POAS), [transaction_id](https://www.productmetrics.io/glossary/transaction-id), one or more identifiers.

4. Upload through Data Manager

- Use a small job runner to push events in near real time and monitor [Data Manager diagnostics](https://developers.google.com/data-manager/api/devguides/events/google-ads/offline).

5. 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](https://developers.google.com/ads/blog/posts/2026/05/changes-to-offline-click-conversion).

> **Get every conversion back into Google Ads, Meta and ChatGPT Ads.** Full Signal Tracking gets through every adblocker, so bidding works on your full revenue. Sends revenue, profit and new customers to Google Ads, Meta and ChatGPT Ads. [Book a demo](https://www.productmetrics.io/demo)

## Magento 2/Adobe Commerce server-side tracking using REST

[Magento 2 (Adobe Commerce)](https://www.productmetrics.io/platforms/magento) 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](https://developer.adobe.com/commerce/webapi/rest/tutorials/orders/order-create-invoice) 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](https://experienceleague.adobe.com/en/docs/commerce-admin/stores-sales/order-management/orders/order-status) 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](https://www.productmetrics.io/docs/tracking/server-side/magento-google-ads).

## Shopware 6 purchase tracking with Flow Builder webhooks

[Shopware 6](https://www.productmetrics.io/platforms/shopware) 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](https://docs.shopware.com/en/shopware-6/configuration/settings/shop/flow-builder/#webhook-actions-in-flow-builder) 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](https://www.productmetrics.io/docs/tracking/server-side/shopware-google-ads).

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

[Lightspeed eCom C‑Series](https://www.productmetrics.io/platforms/lightspeed) 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.<br />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](https://ecom-support.lightspeedhq.com/hc/en-us/articles/220320508-Understanding-eCom-C-Series-specifications-and-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](https://www.productmetrics.io/docs/tracking/server-side/lightspeed-google-ads).

![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](https://www.productmetrics.io/images/blog/server-side-tracking-lightspeed-shopware-magento/ssplat-platform-triggers.webp)

_Check your Lightspeed polling volume against the request limits, your Shopware plan for webhook access and your Magento payment workflow for a capture signal._

> **Related:** Prefer an app or plugin to a custom build? Compare the options for [Shopware 6](https://www.productmetrics.io/blog/shopware-google-ads-conversion-tracking-plugins) and [Magento](https://www.productmetrics.io/blog/magento-google-ads-conversion-tracking-extensions).

## 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](https://www.productmetrics.io/docs/using/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](https://support.google.com/google-ads/answer/7686280), 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](https://www.productmetrics.io/pricing#included)

> **Google's guide:** Google’s guide to [value-based bidding](https://support.google.com/google-ads/answer/15099424) explains how [Target ROAS](https://www.productmetrics.io/break-even-roas-calculator) bids on the conversion values you send. In Product Metrics, this is the **Product Metrics - Profit** action. Keep the revenue action secondary once the switch is complete.

## 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](https://www.productmetrics.io/ad-blocker-conversion-tracking). | 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 |

> **Sidenote:** To see what an ad blocker stops on your own store, run the [ad blocker check](https://www.productmetrics.io/ad-blocker-conversion-tracking), and decode any tracking request with the [SDK debugger](https://www.productmetrics.io/sdk-debugger).

> **Related:** The step-by-step setup for a GTM server container or GA4 import is in [how to set up server-side tracking for Google Ads](https://www.productmetrics.io/blog/google-ads-server-side-tracking), and [server-side tracking tools](https://www.productmetrics.io/blog/server-side-tracking-tools) compares hosted options.

## What to do next

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

## Sources

- [Google Ads offline conversions - Data Manager API guide](https://developers.google.com/data-manager/api/devguides/events/google-ads/offline)
- [Changes to offline click conversion import support (June 2026)](https://developers.google.com/ads/blog/posts/2026/05/changes-to-offline-click-conversion)
- [Lightspeed eCom C‑Series specifications and API limits](https://ecom-support.lightspeedhq.com/hc/en-us/articles/220320508-Understanding-eCom-C-Series-specifications-and-limits)
- [Shopware 6 Flow Builder webhook actions](https://docs.shopware.com/en/shopware-6/configuration/settings/shop/flow-builder/#webhook-actions-in-flow-builder)
- [Adobe Commerce invoice and payment capture example](https://developer.adobe.com/commerce/webapi/rest/tutorials/orders/order-create-invoice)
- [Adobe Commerce REST tutorials (orders under /V1)](https://developer.adobe.com/commerce/webapi/rest/tutorials/)

## Frequently asked questions

### Can I send both revenue and profit to Google Ads?

Yes. Set up [separate conversion actions](https://www.productmetrics.io/blog/multiple-conversion-actions-google-ads) - 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](https://www.productmetrics.io/glossary/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.

## Keep reading.

- [How to switch Google Ads purchase tracking without code](https://www.productmetrics.io/blog/easiest-google-ads-conversion-tracking)
- [Product Metrics vs Elevar vs Littledata for Google Ads](https://www.productmetrics.io/blog/elevar-vs-littledata-vs-product-metrics)
- [Google Ads conversion tracking with Customer Match remarketing lists](https://www.productmetrics.io/blog/google-ads-conversion-tracking-remarketing)

---

Written by Berend Vrakking, founder of Product Metrics. Last updated 2026-12-01.

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

HTML version: https://www.productmetrics.io/blog/server-side-tracking-lightspeed-shopware-magento
