Setup
This is a feature only available in the pro plans of the Pixel Manager for WooCommerce.
This guide walks you through activating the Server-Side Proxy from start to finish. The process involves creating a SweetCode Cloud account, setting up a proxy domain, configuring DNS, and connecting it to the Pixel Manager.
Prerequisites
Before you begin, make sure you have:
- Pixel Manager for WooCommerce Pro installed and activated (version 1.57.0+)
- At least one server-side destination configured in the Pixel Manager (e.g. a Meta CAPI access token and pixel ID, a TikTok Events API token, etc.)
- DNS access to the domain where your WooCommerce shop is hosted
- A valid email address to sign up for SweetCode Cloud
Step 1: Create a SweetCode Cloud Account
- Go to portal.sweetcode.cloud
- Enter your email address and click Sign In
- Check your inbox for the magic link and click it to access the dashboard
SweetCode Cloud uses passwordless authentication — no password to remember or manage.
A free plan is included by default. You can upgrade at any time if you need higher request limits.
Step 2: Add Your Domain in the Portal
- In the SweetCode Cloud dashboard, navigate to Domains in the sidebar
- Click Add Domain
- Enter your shop's domain (e.g.
yourshop.com) - Optionally customize the subdomain prefix (default:
ssp, resulting inssp.yourshop.com) - Click Add
The portal will show you the CNAME record you need to add in the next step.
Step 3: Configure DNS
Add a CNAME record in your domain's DNS settings:
| Type | Name | Target |
|---|---|---|
| CNAME | ssp | ssp.sweetcode.cloud |
Replace ssp with your chosen subdomain prefix if you customized it in the previous step.
If your domain uses Cloudflare DNS, make sure the CNAME record is set to Proxied (orange cloud enabled). This is required for the proxy to work correctly with Cloudflare.
After adding the DNS record:
- Go back to the SweetCode Cloud dashboard
- Click Verify DNS on your domain
DNS propagation can take a few minutes. If verification fails, wait a few minutes and try again.
For detailed DNS instructions for specific registrars (Cloudflare, Namecheap, GoDaddy, Vercel, and others), see the SweetCode Cloud Domain Setup Guide.
Step 4: Connect the Pixel Manager
- In the SweetCode Cloud dashboard, go to your domain and copy the Sync Token
- In your WordPress admin, open Pixel Manager > Settings > Server-Side Events tab
- Scroll down to the Server-Side Proxy section
- Paste the sync token into the Sync Token field
- Click Activate
The Pixel Manager will:
- Validate the sync token with SweetCode Cloud
- Fetch your domain configuration
- Automatically push all configured destination credentials (pixel IDs and API tokens) to SweetCode Cloud
On success, the status panel will appear showing your connection status.
Step 5: Flush Caches
After activation, flush all server-side caches on your WooCommerce site:
- Object cache (Redis, Memcached, etc.)
- Page cache (WP Super Cache, W3 Total Cache, LiteSpeed, etc.)
- Full-page caching at the hosting level (Cloudflare, Varnish, etc.)
The Pixel Manager needs to output updated JavaScript configuration to the frontend. Cached pages will still contain the old configuration until the cache is cleared.
Step 6: Verify
After activation and cache clearing, verify that everything is working:
-
Check the PMW status panel: In the Pixel Manager settings under Server-Side Proxy, confirm:
- Routing Status shows Active
- Config Status shows Synced
- The overall status badge shows Active
-
Check the SweetCode Cloud portal: Navigate to Events > Live to see real-time event flow from your shop
- Browse your shop: Visit a few product pages and add an item to the cart. Events should appear in the SweetCode Cloud portal within seconds.
If you don't see events flowing, check the Management & Troubleshooting page for common issues and solutions.
What Happens After Activation
Once activated, the Server-Side Proxy works automatically:
- Browser events (PageView, ViewContent, AddToCart, InitiateCheckout, etc.) are routed through your first-party subdomain to SweetCode Cloud, which forwards them to the configured ad platform APIs.
- Purchase events are also routed through the proxy, with automatic fallback to direct sends if the proxy is unreachable.
- Config auto-sync keeps your credentials up to date — when you change a CAPI token or pixel ID in the Pixel Manager, the new credentials are automatically pushed to SweetCode Cloud. A daily sync also runs to ensure everything stays in sync.