Mr Postback

CAKE macros

CAKE uses #hash# syntax for tokens — different from every other platform on this list. Tokens are written with a hash on each side, e.g. #s2# not {s2}. Pasting a CAKE URL into any other platform without converting the syntax will silently break tracking.

23 macros · #s2# Official docs

👋 Quick tip: Every macro below has a "Here's what I'd do" section — a plain-English note on exactly when and how to use it. If you're ever unsure, that's the bit to read.

Attribution

#leadid#

CAKE's unique conversion ID, auto-assigned to every conversion, event or lead.

Here's what I'd do

Use this for reconciliation between your system and CAKE. It's CAKE's own conversion ID — different from #tid# which is the advertiser's transaction ID. If you need to match a conversion in both systems, pass #leadid# back in your postback.

Partner Postback
#reqid#

CAKE's Request Session ID — the primary identifier for S2S postback tracking. Generated per click session.

Here's what I'd do

This is how CAKE's S2S tracking works. Pass #reqid# in your offer link so the advertiser stores it. When a conversion fires, the advertiser returns it in the r= parameter of your CAKE postback URL. Important: reqid is session-based not unique per click, so it can repeat on high-volume campaigns.

Tracking Link Partner Postback
#tid#

The transaction ID passed by the advertiser in the t= parameter of the conversion pixel.

Partner Postback
Only available in conversion pixels — doesn't exist until a conversion is recorded, so cannot be passed in the offer link.

Financial

#price#

The payout or price value for the conversion.

Here's what I'd do

CAKE calls the payout 'price' — not 'payout' or 'amount'. Add it to your postback like: &amt=#price#. This is another naming quirk to watch for when translating from other platforms.

Partner Postback

Sub IDs

#s2#

Sub ID 2 — the standard slot for a partner's click ID or session ID. CAKE recommends always using s2 for click IDs, not s1.

Here's what I'd do

This is the one you'll use most. When you pass your click ID into CAKE's tracking link using s2=, you get it back at conversion time with #s2#. A typical postback looks like: https://yourplatform.com/pb?click_id=#s2#. Watch out for the 100 character limit — if your click ID is longer, it overflows into s3 automatically.

Partner Postback Tracking Link
100 character limit. Overflow spills into s3. s1 is reserved for affiliate ID — don't use s1 for click IDs.
#s1#

Sub ID 1 — reserved by CAKE for the affiliate ID from your system.

Here's what I'd do

CAKE explicitly reserves s1 for your affiliate ID. Don't put your click ID here — use s2 instead. Mixing these up is a common mistake that causes attribution failures.

Partner Postback Tracking Link
50 character limit (stricter than s2-s5). Reserved for affiliate ID.
#s3#

Sub ID 3 — additional passthrough slot. Overflow from s2 spills here if s2 exceeds 100 chars.

Partner Postback Tracking Link
100 character limit.
#s4#

Sub ID 4 — additional passthrough slot.

Partner Postback Tracking Link
100 character limit.
#s5#

Sub ID 5 — additional passthrough slot.

Partner Postback Tracking Link
100 character limit.

Advertiser Data

#adv1#

Advertiser Sub ID 1 — passed in adv1= of the conversion pixel. 500 character limit.

Partner Postback
Available #adv1# through #adv10#. 500 character limit each.
#adv2#

Advertiser Sub ID 2. 500 character limit.

Partner Postback
#adv3#

Advertiser Sub ID 3. 500 character limit.

Partner Postback
#adv4#

Advertiser Sub ID 4. 500 character limit.

Partner Postback
#adv5#

Advertiser Sub ID 5. 500 character limit.

Partner Postback

IDs

#affid#

The affiliate ID on the CAKE network.

Partner Postback Tracking Link
#oid#

The offer ID.

Partner Postback Tracking Link
#campid#

The campaign ID.

Partner Postback Tracking Link
#cid#

The creative ID associated with the click.

Tracking Link

Device

#ip#

IP address at conversion time.

Partner Postback
#sourceip#

IP address at click time.

Partner Postback

Mobile IDs

#udid#

Unique Device ID for mobile tracking.

Partner Postback

Timestamps

#utcunixtime#

Conversion timestamp in UNIX format (UTC).

Partner Postback
#sourcetime#

Conversion timestamp in standard format (e.g. 2013-11-12T13:04:27).

Partner Postback

Data sourced from CAKE's official documentation on 2026-04-18.