Skip to content

Events & Tracking

SweetCode Cloud gives you full visibility into every tracking event flowing through the proxy. The Events page in the dashboard lets you monitor events in real time, filter by multiple criteria, and debug issues with specific destinations.

When a visitor interacts with your WooCommerce store, the event flow looks like this:

  1. Browser — The visitor performs an action (page view, add to cart, purchase)
  2. Pixel Manager JS — The Pixel Manager for WooCommerce JavaScript library captures the event and sends it to your proxy subdomain (ssp.yourshop.com/v1/events)
  3. Cloudflare Edge — The SweetCode Cloud Worker at the nearest of 300+ edge locations receives the event
  4. Validation — The Worker verifies the domain, checks quota, validates the payload, and verifies the request authenticity
  5. Fan-out — The event is forwarded simultaneously to all configured destinations (Meta, TikTok, Pinterest, Snapchat, Reddit)
  6. Response — Each destination’s API response is logged for debugging

This entire flow happens in milliseconds — your WooCommerce server is never involved in the server-side API calls.

SweetCode Cloud supports 9 standard event types that map to all supported ad platforms:

EventDescriptionTypical Trigger
PageVisitGeneral page viewAny page load
ViewContentProduct or content page viewProduct page
SearchSearch queryStore search
AddToCartItem added to cartAdd-to-cart button click
AddToWishlistItem added to wishlistWishlist button click
PurchaseCompleted orderOrder confirmation page
LeadLead form submissionContact or inquiry form
SignUpAccount registrationAccount creation
CustomCustom eventAny custom event (passed through)

Each event type is automatically mapped to the correct platform-specific event name for each destination. See the Supported Destinations guide for the full mapping table.

The Events page in the dashboard has two viewing modes:

The Live tab shows events arriving in real time with automatic 2-second polling. A green pulsing indicator shows that live tracking is active. This is the best way to verify your setup is working — open your store in another browser tab, perform an action, and watch the event appear within seconds.

You can pause live tracking by clicking the indicator toggle.

The Log tab shows a paginated, filterable history of all events. Use this for investigating specific issues, reviewing past events, or auditing tracking accuracy.

Both views support the following filters:

FilterDescription
DomainFilter by a specific domain (useful if you have multiple stores)
DestinationShow events for a specific platform (Meta, TikTok, etc.)
OutcomeFilter by success or failure
Event TypeFilter by event type (Purchase, AddToCart, etc.)
Request IDSearch for a specific request by its unique ID
Time RangeFilter by time period (last hour, last 24 hours, etc.)

Each event in the log shows an outcome for each destination it was forwarded to:

OutcomeMeaning
SuccessThe destination API accepted the event
FailedThe destination API returned an error (check details for the error message)
Rate LimitedThe request was rate-limited by SweetCode Cloud (120 req/IP/min)
DeniedThe event was rejected before forwarding (quota exceeded, invalid payload, etc.)

When an event fails, click on it (or expand the row in table view) to see:

  • The error message from the destination API
  • The HTTP status code returned
  • The request ID for cross-referencing
  • The event type and destination involved

Common failure reasons:

  • Invalid access token — Your destination API credentials may have expired. Regenerate them in the ad platform and update your Pixel Manager configuration
  • Invalid pixel/account ID — Double-check the pixel or account ID in Pixel Manager
  • Rate limiting by the destination — The ad platform is temporarily rejecting requests (usually resolves automatically)

Each domain’s detail page (Domains → [your domain]) includes a compact event preview section showing the most recent events for that specific domain. This is a quick way to check if events are flowing without navigating to the full Events page.

Each event sent through SweetCode Cloud can include:

Customer identifiers used for matching across platforms:

  • Email — Hashed before sending to destinations
  • IP Address — Used for geographic matching
  • User Agent — Browser identification
  • Click IDs — Facebook click ID (fbc) and browser ID (fbp)
  • External ID — Your system’s customer identifier

Event-specific data:

  • Currency and Value — Transaction amount (required for purchase events)
  • Order ID — Your WooCommerce order ID
  • Content IDs — Product SKUs or IDs
  • Contents — Product details (name, price, quantity, category)
  • Search String — The search query (for search events)

All of this data is automatically populated by Pixel Manager for WooCommerce — you don’t need to manually construct event payloads.

Event logs are retained based on your plan:

PlanRetention
Free1 hour
Pro3 days
Business7 days
Scale30 days

After the retention period, event logs are permanently deleted. The logs are used only for your debugging and monitoring purposes.