CAKE postback URL → lidvanto: setup guide

How to set up a CAKE postback URL in the lidvanto tracker: s2 in the offer link, Postback URL on the Testing & Tracking tab, the #s2#, #leadid# and #price# tokens, testing.

You need a CAKE postback if your CPA network runs on the CAKE platform: the partner dashboard (Affiliate Portal) works the same way across such networks. This guide shows how to pass the lidvanto click ID in s2, where to paste the postback URL and how CAKE’s hash-style tokens differ from the usual curly-brace macros.

What CAKE is#

CAKE is software for affiliate marketing and lead distribution. CAKE says more than 500 advertisers, networks and publishers use it. It isn’t a network with offers: if your network runs on CAKE (ask your affiliate manager if unsure), this guide applies.

What makes CAKE different is the token format: instead of {macro}, the postback URL uses values between hash signs, such as #s2#. According to CAKE’s help center, the #s1#–#s5# tokens return the values of the matching tracking link parameters, and CAKE uses #s2# as its example for a partner’s session ID. Per the token list, #price# is the affiliate payout, #tid# is the advertiser’s transaction ID and #leadid# is CAKE’s conversion ID.

What you need#

  • a partner account in a network on CAKE and the offer’s tracking link;
  • access to Tracker in lidvanto: affiliate networks, offers and campaigns;
  • a tracker campaign that will send the traffic.

Ready-made settings from the catalog#

cake template in the lidvanto affiliate network catalog: the “Add affiliate network” form fills in these values. Vertical: Affiliate network platforms.

Offer link parameters

s2={click_id}

Add them to the offer link: the tracker will substitute the click ID for {click_id}.

Postback link

https://lidvanto.com/traffic/affiliate-postback/ID/?token=TOKEN&click_id=#s2#&order_id=#leadid#&payout=#price#
  • ID and TOKEN are your affiliate network’s number and secret token: copy the ready link from its card.
  • There’s no status in the link: the tracker counts every conversion as confirmed.

Step 1. Create a network from the CAKE template#

  1. Open Tracker → Affiliate networks and click Add affiliate network.
  2. Find cake in the catalog. The postback tokens and the click ID parameter are filled in automatically — the same values as in the block above.
  3. Name it after your network, not “CAKE”: each network on CAKE should have its own entry and its own postback URL.
  4. Keep Test mode on and click Save.

If your network is in the catalog under its own name, use that template instead. The fields are described in Connecting a network.

Step 2. Pass the click ID in s2#

In the offer card (Tracker → Offers), paste the tracking link from the Affiliate Portal and append the parameter from the block above:

https://network-tracking-link/?…&s2={click_id}

If the link already has parameters after ?, add s2 with &. The tracker fills in the click ID, and CAKE returns it in the postback via the #s2# token. s1 and s3–s5 stay free for your own labels. Then connect the offer to the new network in the offer card’s Affiliate networks block. All offer URL macros are listed in Offers.

Step 3. Paste the Postback URL in the Affiliate Portal#

  1. In lidvanto, open the network card and click Copy in the Postback link block — the link already contains the network number and a secret token.
  2. In the network dashboard, open Offers, find the offer and open its card.
  3. On the Testing & Tracking tab, paste the link into Postback URL — CAKE’s help center calls it the server pixel. Pixel HTML is for image pixels and iframes; you don’t need it. Click Save.

The link on the Testing & Tracking tab belongs to that offer: repeat step 3 with the same lidvanto link for every new offer. If you run many offers, ask the affiliate manager whether they can attach the postback to all of them at once.

Step 4. Statuses, conversion number and currency#

The template has no status token, so lidvanto counts every conversion it receives as confirmed. There’s no currency either: the tracker takes it from Commission currency in the offer’s Affiliate networks block — make sure it matches the network’s payout currency.

The template takes the order number from #leadid# — CAKE’s own conversion ID, which every conversion has. Macros are explained in Affiliate network postback.

Step 5. Test with a conversion#

  1. Open your campaign link and complete the offer’s target action.
  2. In lidvanto, open Statistics → Logs, Postbacks tab: it shows every network request and the tracker’s response; rejections are red, with the reason.
  3. The conversion appears in Statistics → Conversions as Confirmed, with the payout.

What to do with test orders afterwards is described in Conversions and logs.

Common mistakes#

  • The link is in Pixel HTML. That field is for browser pixels; a server postback goes into Postback URL.
  • The postback is on the wrong offer. The link on the Testing & Tracking tab works for its own offer: a new offer doesn’t have it yet.
  • {s2} instead of #s2# in the postback. CAKE tokens go between hash signs; with curly braces you get text instead of the click ID, and the tracker rejects the postback. Copy the link from lidvanto as is.
  • No s2 in the offer link. The network has nothing to return, and the postback arrives without a click ID.
  • The offer isn’t connected to the network. The log says the click or offer doesn’t belong to this affiliate network.

FAQ#

Where do I add a postback URL in CAKE?#

In the Affiliate Portal: Offers → the offer card → Testing & Tracking tab → Postback URL, then Save.

Which CAKE token returns the click ID?#

#s2# — the value of the s2 parameter from the tracking link. You can use another one from s1–s5, but then change it both in the offer link and in the network’s Click ID field.

Which CAKE token carries the payout?#

#price# — the affiliate payout for the conversion. In the lidvanto link it sits in the payout parameter.

Does the CAKE postback send a conversion status?#

The lidvanto template has no status token, so the tracker counts every conversion it receives as confirmed. You won’t see rejections in the tracker — check them against the network’s reports.

Can I connect several networks that run on CAKE?#

Yes. Create one affiliate network entry per network: each has its own postback URL and token, so conversions don’t get mixed up.

Further reading#