> ## Documentation Index
> Fetch the complete documentation index at: https://5332bee-productmetrics.manicule.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://5332bee-productmetrics.manicule.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://5332bee-productmetrics.manicule.dev/docs/api/mcp.
> Every agent surface: https://5332bee-productmetrics.manicule.dev/docs/.well-known/llms-manifest.json

# Server-side tracking and profit bidding on any website (Cloudflare) (/docs/platforms/cloudflare)

<!-- agent-signals: reading_time_min: 9 · est_tokens: 4140 · updated: 2026-11-17 -->
Related: [Connect your store: Shopify, WooCommerce, Magento, Lightspeed, Shopware or any website](/docs/platforms/overview.md), [Shopify server-side tracking and profit bidding (POAS)](/docs/platforms/shopify.md), [WooCommerce server-side tracking and profit bidding (POAS)](/docs/platforms/woocommerce.md), [Magento server-side tracking and profit bidding (POAS)](/docs/platforms/magento.md), [Lightspeed eCom server-side tracking and profit bidding (POAS)](/docs/platforms/lightspeed.md), [Shopware server-side tracking and profit bidding (POAS)](/docs/platforms/shopware.md)

> No supported shop platform? Sign in to Cloudflare and Cloudflare Tracking sends your website's purchases server-side to Google Ads, Meta and ChatGPT Ads, so you can bid on profit.

**Cloudflare Tracking** is for any website that isn't on Shopify, WooCommerce, Magento, Lightspeed or Shopware 6. It reads each purchase from your **order confirmation page** and sends it server-side to each ad channel.

All you do is sign in: you log in to Cloudflare, approve Product Metrics and choose your domain, and Product Metrics adds the tracking to every page. No code, no Google tag.



* **Install:** sign in to Cloudflare. No code, no Google tag.
* **Product cost:** none on website orders: **Product cost fallback (%)**.
* **Consent banner:** OneTrust, Cookiebot, Usercentrics or Osano.

## Set it up with AI



Setting it up with AI takes one prompt and 60 seconds: paste it into your assistant.



First connect the Product Metrics MCP server ([https://www.productmetrics.io/mcp](https://www.productmetrics.io/mcp); see [Connect your assistant](/docs/mcp/connect)).

**Claude or ChatGPT:** "Connect my website to Product Metrics with Cloudflare Tracking. Check my setup status first, walk me through each open step, and give me the link when I need to sign in to Cloudflare."

**Claude Code or Codex:** "Connect my website to Product Metrics with Cloudflare Tracking and walk me through each open setup step, giving me the link when I need to sign in to Cloudflare. Use the Product Metrics MCP server, or the productmetrics CLI with --json and the Product Metrics skills if they are installed (run `productmetrics help agents` first)."

## Prerequisites

* A website whose domain uses Cloudflare DNS, with its DNS record proxied (the orange cloud).
* A Cloudflare login for that account that can approve access. Product Metrics never changes your DNS.
* A [workspace](/docs/using/create-a-workspace), a property for the orders, and a workspace admin for the Cloudflare sign-in.

Running Shopify, WooCommerce, [Magento](/docs/platforms/magento), [Lightspeed](/docs/platforms/lightspeed) or Shopware? Use that platform's page: it reads orders from the shop itself.

## In the app

### 1. Add your website

Go to **Ecommerce platforms → Connect Cloudflare Tracking** and enter the hostname your customers visit. One installation per hostname.



1. **Open Ecommerce platforms.** Go to **Integrations → Ecommerce platforms**. Under **Unlock server-side conversion tracking**, select **Connect** on **Cloudflare Tracking**.

   ![The Unlock server-side conversion tracking section: Cloudflare Tracking, Track every sale server-side on your own domain, with a Connect button.](/docs/_assets/8820daec93b28f5786ee9afbc911958a2ff2a6612725f3f423094f16fa35898f)

2. **Start the setup.** The page lists three steps: add your website, link a property and connect Cloudflare. Select **Connect Cloudflare Tracking**.

   ![The Cloudflare Tracking page under Integrations → Ecommerce platforms: 0 of 3 steps done, step 1 Add your website with the Connect Cloudflare Tracking button, then Link a property.](/docs/_assets/a33b82bc2cc9c8311d6ea867c5d5b2842ff9406fc48e3bad9844a6192cc50ae0)

3. **Enter your website domain.** Enter the domain your customers visit and select **Connect**. One installation per hostname.

   ![The Connect Cloudflare Tracking dialog, for any website using Cloudflare DNS: an empty Your website domain field and the Cancel and Connect buttons.](/docs/_assets/ede7bed40075b1056a2c009a2642f756a36280f1ec705b4633b9e0d32b31dea4)

**You should see:** **Cloudflare Tracking** list your website under **Ecommerce platforms**.

### 2. Send its orders to a property

Under **Storefront scopes**, link the property that should receive the orders.

### 3. Sign in to Cloudflare

This is the whole setup on your side, in a browser. In **Tracking**, under **Complete your tracking setup**, open **Connect Cloudflare**. A workspace admin:

1. Selects **Connect Cloudflare**, signs in to Cloudflare and approves Product Metrics.
2. Chooses the **Cloudflare account** and the **Cloudflare zone** your domain is in.
3. Selects **Set up gateway** and keeps the page open until it finishes.

Product Metrics adds the tracking to every page of your domain. Nothing to paste or publish.

**You should see:** **Gateway setup complete**.

### 4. Finish tracking setup

* **Consent**: choose your banner (OneTrust, Cookiebot, Usercentrics or Osano). See [Consent](/docs/using/consent).
* **Channels**: connect [Google Ads](/docs/channels/google-ads) (with Data Manager access), [Meta](/docs/channels/meta) and [ChatGPT Ads (OpenAI)](/docs/channels/openai).
* **Google Ads conversion actions**: [create them](/docs/using/conversion-actions).
* **Additional costs**: website orders carry no product costs, so set **Product cost fallback (%)** and add shipping, handling, returns and payment fees. See [Costs](/docs/using/costs).

Step by step in **Tracking**:



1. **Open Tracking.** Go to **Integrations → Tracking**. The checklist shows six steps: start by connecting your store, or use Cloudflare Tracking if you have no store platform.

   ![Tracking in Product Metrics with the Complete your tracking setup checklist of six steps, starting with Connect your store.](/docs/_assets/09a584afb1797a0439b68310c4d6085412eafebba1524c019f42a90f3ed4ea37)

2. **Follow the next step.** Once your store is connected and linked, the checklist opens the next open step. Each step says what it does.

   ![The Complete your tracking setup checklist in Tracking: 3 of 6 essential steps completed, with Connect your store, Link the store to this property and Install storefront tracking ticked, and Configure consent open as step 4 with the consent platform still Not configured.](/docs/_assets/b385237058280a34dca53f7f1e42704faa9a8aee59024bd5baafc2211e201e7e)

3. **Configure consent.** Under **Configure consent**, pick the cookie consent platform your storefront uses. The storefront script collects nothing until the visitor agrees.

   ![The Consent management panel in Tracking: the storefront script collects nothing until your cookie banner says the visitor agreed, a Not configured status, and the Consent platform dropdown.](/docs/_assets/f0a8d61eaa086657ce840c85899df48d5f3a7a52fb6c552710f93b1482b90e72)



1. **Create Google Ads conversions.** Under **Create Google Ads conversions**, select **Create 8 conversion actions**. Product Metrics manages one Google Ads conversion action per purpose; they start as secondary goals, and you choose the primary goal in Google Ads.

   ![The Conversion actions page in Product Metrics, opened from Tracking: Not configured, 0 of 8 managed and the Create 8 conversion actions button. Below it, Customer types (New customer revenue and profit, Returning customer revenue and profit) and Order value (Order revenue, Order profit), each Missing with Google goal status Unknown, and the Lifetime value group heading.](/docs/_assets/816fdc81f1068f5d013a17d0d26166a0834cc61c69943d0c05d5171b557e0652)



1. **Add your additional costs.** Product costs come from your store where it reports them. Under **Add your additional costs**, add shipping, handling, returns and payment fees, set **Product cost fallback (%)** and select **Activate additional costs**, so the profit conversions carry real profit.

**You should see:** the badge next to **Tracking** read **Tracking active**.

### 5. Check your purchases

Place a test order and finish it through to the order confirmation page. Then open **Check your purchases** in the app; your order shows within two minutes.



1. **Check storefront collection.** **Storefront & data collection** shows how tracking runs on your site and which consent and profit settings apply.

   ![The WooCommerce installation panel from Storefront & data collection in Tracking: Active, northwind-outfitters.example collecting visits, carts and checkouts on this domain, and storefront tracking managed by the WooCommerce plugin, with no Cloudflare setup or manual script tag required. An Advanced collection settings button.](/docs/_assets/360f30f6ea7a26ac41a96d240ec9e7d99f1f6bea85d7d728a315ab3452f3fd12)

   *Example data.*

2. **Review the Google Ads destination.** The **Google Ads** panel shows the connection, the conversion actions, profit tracking and the enhanced conversions terms.

3. **Check that tracking is live.** When every step is done, the badge next to **Tracking** reads **Tracking active**, and Tracking shows how many conversion actions receive orders.

**You should see:** **Last purchase received** with the order's number and value. Under the Cloudflare gateway, **Live endpoints** lists the **Tracking SDK** and **Event collector** on your domain.

## How it works on a website

|                               | On a website                                                                                                                |
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| **Install**                   | Sign in to Cloudflare, approve Product Metrics, choose your domain                                                          |
| **Order source**              | The purchase your order confirmation page reports                                                                           |
| **Product cost**              | None on website orders: **Product cost fallback (%)** plus your additional costs                                            |
| **Consent**                   | OneTrust, Cookiebot, Usercentrics or Osano                                                                                  |
| **Value sent**                | Exactly the order value the page reported                                                                                   |
| **Refunds and cancellations** | Tracked by Product Metrics. Google Ads conversions are adjusted; events already sent to Meta and ChatGPT Ads aren't revised |
| **Disconnect**                | Product Metrics removes its Cloudflare resources, which takes tracking off your pages; the website stays set up             |

## What you get with Cloudflare Tracking

Each feature, its channels and the Cloudflare Tracking guide for each:



**Features and guides with Cloudflare Tracking**

| Feature                                                                | Channels                                                                                                                                                                                      | On this platform                                                                          |
| ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [Server-side conversion tracking](/docs/features/ad-blocker-proof-tracking) | [Google Ads](/docs/tracking/server-side/cloudflare-google-ads) · [Meta](/docs/tracking/server-side/cloudflare-meta) · [ChatGPT Ads](/docs/tracking/server-side/cloudflare-openai)                            | Purchases your confirmation page reports, served from your domain; the first report wins. |
| [Enhanced Conversions](/docs/features/enhanced-conversions)                 | [Google Ads](/docs/tracking/enhanced-conversions/cloudflare-google-ads) · [Meta](/docs/tracking/enhanced-conversions/cloudflare-meta) · [ChatGPT Ads](/docs/tracking/enhanced-conversions/cloudflare-openai) | Sent only with ad user data consent.                                                      |
| [Customer lists](/docs/features/customer-list)                              | [Google Ads](/docs/tracking/customer-lists/cloudflare-google-ads)                                                                                                                                  | Customer Match lists from the purchases Product Metrics receives.                         |
| [POAS and ROAS bidding](/docs/features/poas-bidding)                        | [Google Ads](/docs/bidding/poas/cloudflare-google-ads) · [Meta](/docs/bidding/poas/cloudflare-meta) · [ChatGPT Ads](/docs/bidding/poas/cloudflare-openai)                                                    | No product costs: profit uses **Product cost fallback (%)** plus your additional costs.   |
| [New customer bidding](/docs/features/new-customer-bidding)                 | [Google Ads](/docs/bidding/new-customers/cloudflare-google-ads) · [Meta](/docs/bidding/new-customers/cloudflare-meta)                                                                                   | Only purchases Product Metrics has already seen; the page reports no history.             |
| [Returning customer bidding](/docs/features/returning-customer-bidding)     | [Google Ads](/docs/bidding/returning-customers/cloudflare-google-ads) · [Meta](/docs/bidding/returning-customers/cloudflare-meta)                                                                       | Same as new customers: purchases Product Metrics has already seen.                        |
| [LTV bidding](/docs/features/ltv-bidding)                                   | [Google Ads](/docs/bidding/ltv/cloudflare-google-ads) · [Meta](/docs/bidding/ltv/cloudflare-meta) · [ChatGPT Ads](/docs/bidding/ltv/cloudflare-openai)                                                       | Built from the purchases Product Metrics receives from the website.                       |

## Troubleshooting

| Problem                                                                                   | Fix                                                                                                                                                        |
| ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **"Proxy the storefront DNS record first"**                                               | Turn on the orange cloud for your domain's DNS record in Cloudflare, then choose the zone again.                                                           |
| **"Update the storefront domain first"**                                                  | The zone doesn't contain your domain. Select **Change storefront domain**, enter the hostname customers use without `https://`, and choose the zone again. |
| **"Some permissions were not granted" or "Cloudflare did not authorize Product Metrics"** | Select **Connect Cloudflare** again and approve every permission.                                                                                          |

## FAQ

### Do I need a developer or any code for Cloudflare Tracking?

No. The setup is signing in to Cloudflare: you approve Product Metrics, choose your domain, and Product Metrics adds the tracking to every page. Nothing to paste or publish.

### Does Product Metrics change my DNS?

No. Your domain needs Cloudflare DNS with its record proxied (the orange cloud), but Product Metrics never changes your DNS.

### Can I bid on profit without product costs?

Yes. Website orders carry no product cost, so profit for POAS bidding uses your **Product cost fallback (%)** plus your additional costs. Set both in [Costs](/docs/using/costs).

### Are refunds and cancellations tracked?

Yes. Product Metrics adjusts the Google Ads conversion when the order is refunded or cancelled, and counts the refund in profit and lifetime value. Meta and ChatGPT Ads don't accept revisions, so events already sent to them stay as they are.

## Where next



* [Google Ads](/docs/channels/google-ads): connect Google Ads and Merchant Center
* [Meta](/docs/channels/meta): send purchases through the Meta Conversions API
* [ChatGPT Ads (OpenAI)](/docs/channels/openai): send purchases through the OpenAI Conversions API
* [Costs](/docs/using/costs): set the product cost fallback
* [Check tracking works](/docs/using/check-tracking): the checks to run after your first order
* [Overview of every setup task](/docs/using/overview): every setup task and where to find it

On the website: [Full Signal Tracking](https://www.productmetrics.io/server-side-tracking), [pricing](https://www.productmetrics.io/pricing), [supported platforms](https://www.productmetrics.io/platforms)

Developers: do the same with the [CLI](/docs/cli/commands#stores-and-tracking) or the [API](/docs/api/stores-and-tracking/tracking-create-website-installation).
