Mr Postback

CAKE macros & parameters

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.

25 entries (18 current/verified) · #s2# Official docs

👋 Quick tip: Check the type badge before copying. A substitution macro inserts a value; an inbound parameter is the field name a platform expects when receiving a postback.

What are you setting up?

Choose a use case to keep only the fields that apply.

Showing 25 of 25 entries

Attribution

#eid#
Substitution macro high confidence

CAKE event ID.

Partner Postback
#leadid#
Substitution macro high confidence

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#
Substitution macro low confidence

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

This entry is retained for reference but was not confirmed in the latest official documentation. Verify it before using it in production.

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.

Partner Postback Tracking Link
#tid#
Substitution macro high confidence

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#
Substitution macro high confidence

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

#s1#
Substitution macro medium confidence

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.
#s2#
Substitution macro medium confidence

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.
#s3#
Substitution macro medium confidence

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

Partner Postback Tracking Link
100 character limit.
#s4#
Substitution macro medium confidence

Sub ID 4 — additional passthrough slot.

Partner Postback Tracking Link
100 character limit.
#s5#
Substitution macro medium confidence

Sub ID 5 — additional passthrough slot.

Partner Postback Tracking Link
100 character limit.

Advertiser Data

#adv1#
Substitution macro low confidence

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

This entry is retained for reference but was not confirmed in the latest official documentation. Verify it before using it in production.
Partner Postback
Available #adv1# through #adv10#. 500 character limit each.
#adv2#
Substitution macro low confidence

Advertiser Sub ID 2. 500 character limit.

This entry is retained for reference but was not confirmed in the latest official documentation. Verify it before using it in production.
Partner Postback
#adv3#
Substitution macro low confidence

Advertiser Sub ID 3. 500 character limit.

This entry is retained for reference but was not confirmed in the latest official documentation. Verify it before using it in production.
Partner Postback
#adv4#
Substitution macro low confidence

Advertiser Sub ID 4. 500 character limit.

This entry is retained for reference but was not confirmed in the latest official documentation. Verify it before using it in production.
Partner Postback
#adv5#
Substitution macro low confidence

Advertiser Sub ID 5. 500 character limit.

This entry is retained for reference but was not confirmed in the latest official documentation. Verify it before using it in production.
Partner Postback

IDs

#affid#
Substitution macro medium confidence

The affiliate ID on the CAKE network.

Partner Postback Tracking Link
#campid#
Substitution macro medium confidence

The campaign ID.

Partner Postback Tracking Link
#cid#
Substitution macro medium confidence

The creative ID associated with the click.

Tracking Link
#oid#
Substitution macro medium confidence

The offer ID.

Partner Postback Tracking Link

Device

#ip#
Substitution macro high confidence

IP address at conversion time.

Partner Postback
#sourceip#
Substitution macro high confidence

IP address at click time.

Partner Postback
Current CAKE conversion-token guide uses #sourceip#. Older CAKE Basic documentation used #source_ip#; treat #source_ip# as legacy until confirmed in your CAKE instance.

Mobile IDs

#udid#
Substitution macro low confidence

Unique Device ID for mobile tracking.

This entry is retained for reference but was not confirmed in the latest official documentation. Verify it before using it in production.
Partner Postback

Timestamps

#sourcetime#
Substitution macro medium confidence

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

Partner Postback
#utcunixtime#
Substitution macro medium confidence

Conversion timestamp in UNIX format (UTC).

Partner Postback

User Data

#userid#
Substitution macro high confidence

Advertiser user identifier passed in the u= conversion/event parameter.

Partner Postback

Data sourced from CAKE's official documentation on 2026-09-22.