Skip to main content

Server-Side Proxy

info

This is a feature only available in the pro plans of the Pixel Manager for WooCommerce.

The Server-Side Proxy offloads server-side ad tracking events from your WooCommerce server to SweetCode Cloud — an edge network powered by Cloudflare Workers. Instead of your shop's PHP server sending every conversion API call to ad platforms (adding latency and CPU load), events are routed through a first-party subdomain (e.g. ssp.yourshop.com) to a Cloudflare Worker that fans them out to the ad platform APIs on your behalf.

Why Use It

Reduce Server Load

Every Conversion API (CAPI) event — AddToCart, ViewContent, InitiateCheckout, PageView, and more — normally requires your WooCommerce server to make an HTTP request to the ad platform's API. With the Server-Side Proxy, these browser-originated server-side events are handled at the edge, freeing your server's CPU and memory for serving customers.

Improve Tracking Accuracy

Events are sent through a first-party subdomain on your own domain. Because the requests originate from your domain rather than a third-party tracking domain, they are significantly less likely to be blocked by ad blockers and browser privacy features.

Automatic Failover

If the proxy is temporarily unreachable, the Pixel Manager can automatically fall back to sending events directly from your WooCommerce server — ensuring no conversion data is lost.

How It Works

  1. Configuration sync: The Pixel Manager securely pushes your ad platform credentials (pixel IDs and API tokens) to SweetCode Cloud, where they are encrypted at rest with AES-GCM.
  2. Browser events: When a visitor triggers a tracking event (e.g. adds an item to the cart), the Pixel Manager sends the server-side event through your first-party subdomain (ssp.yourshop.com) instead of directly from your WooCommerce server.
  3. Edge fanout: The Cloudflare Worker receives the event, decrypts the stored credentials, and forwards the event to all configured ad platform APIs simultaneously.
  4. Purchase events: Purchase conversion events are also routed through the proxy, with automatic per-platform fallback to direct sends if the proxy is unreachable.

Supported Platforms

PlatformBrowser EventsPurchase Events
Meta (Facebook)✔️✔️
TikTok✔️✔️
Pinterest✔️✔️
Snapchat✔️✔️
Reddit✔️✔️
info

Google Analytics 4 (GA4) is not proxied through the Server-Side Proxy. GA4's Measurement Protocol only sends purchase events server-side, and these are handled directly by the Pixel Manager.

Requirements

  • Pixel Manager for WooCommerce Pro (version 1.57.0 or above)
  • At least one server-side destination configured (e.g. Meta CAPI token + pixel ID)
  • DNS access to your shop's domain (to add a CNAME record)
  • A SweetCode Cloud account (free tier available)

Next Steps

  • Setup Guide — Step-by-step activation instructions
  • Management — Monitoring, syncing, and troubleshooting
  • FAQ — Common questions and answers

Make more money from your ads with high-precision tracking