Setting Up Postback URLs and Pixel Tracking in CAKE

This article will cover the following:


Choosing Between Postback and Pixel

FeaturePostback URL (S2S)Conversion Pixel
How it firesYour server sends an HTTP request to CAKE.A tiny image or JS snippet fires in the visitor's browser.
ReliabilityHigh — not blocked by ad blockers or browser settings.Lower — can be blocked or fail on slow page loads.
Technical setupRequires server-side implementation.Simple — paste code into a webpage.
Best forHigh-volume campaigns, mobile apps, server-side flows.Quick setups, simpler tech stacks.
Note:
Postback URLs are the recommended method for most advertisers. Use pixels when server-side integration is not possible.

Setting Up a Postback URL

  1. Log in to CAKE and go to Offers. Open the offer you want to configure.
  2. Click the Tracking tab within the offer settings.
  3. Copy the Postback URL displayed on screen. It will look like: https://[yourdomain].cakemarketing.com/api/2/conversion.json?...
  4. Replace the REPLACE placeholder at the end with the dynamic click ID your system stored when the visitor first clicked through.
  5. Optionally append &amount=SALE_AMOUNT if your offer pays a percentage of sale value.
  6. Configure your confirmation page or server-side order processing to make an HTTP GET request to this URL when a conversion occurs.
  7. Test it: complete a test conversion, then check Reports → Conversions to confirm it was recorded.
Tip:
The click ID is typically passed in the original tracking link as a URL parameter — e.g. ?s1={'{'}clickid{'}'}. Ask your network for the exact parameter name used in your setup.

Postback URL Parameters

ParameterRequiredDescription
click_idYesThe unique click ID generated at click time.
offer_idYesThe CAKE offer ID associated with the conversion.
payoutNoOverride the affiliate payout amount for this conversion.
revenueNoOverride the advertiser revenue for this conversion.
unique_idNoYour system's unique transaction reference for deduplication.
order_idNoOrder ID from the advertiser system.
adv1–adv5NoCustom sub ID fields for additional tracking data.

Adding a Conversion Pixel

  1. Open the offer in CAKE and go to the Tracking tab.
  2. Copy the conversion pixel code snippet — available as an image tag (for basic tracking) or JavaScript (for more robust data passing).
  3. Paste the pixel into the HTML of your confirmation or thank-you page, just before the closing </body> tag.
  4. Ensure the pixel fires only on genuine conversions — not on every page load or page refresh.
  5. Test by completing a test conversion and confirming it appears in your CAKE conversion report.
Caution:
Browser privacy features and ad blockers can prevent pixels from firing. If you notice a significant gap between your internal conversion data and CAKE's count, switching to a postback URL will resolve most discrepancies.

Troubleshooting Tracking Issues

IssueLikely CauseFix
Conversions not appearing in CAKEPostback URL is missing the click ID, or the click ID was not stored correctly at click time.Verify the click ID is being captured from the tracking link and passed back in the postback URL.
Duplicate conversionsThe postback is firing multiple times per order.Add a unique_id parameter to your postback call to enable deduplication in CAKE.
Pixel not firingAd blocker, browser privacy setting, or page loads before pixel fires.Switch to a server-side postback URL, or ensure the pixel is placed at the end of the page body.
Conversion shows 'Scrubbed'Click ID has expired, or the conversion matched a suppression list entry.Check the offer's session hours setting and review your suppression list configuration.

If you have any questions, please reach out to your dedicated CAKE Client Success Manager/Account Manager or contact the CAKE Support Team at support@getCAKE.com.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.