How Does It Work?
Postback URLs sent to PeerClick are used to record a conversion data.
To track conversions via s2s postback, you need to:
1. Send a cid from the tracker
Cid (click ID) is a unique click identifier generated by the tracker.
The cid is transmitted with the offer link through the {clickid} macro to the side of the offer source (to the platform where the offer link is taken, for example, to the affiliate network).
2. Send a postback with a cid to the tracker
Postback (s2s postback) is a way of sending conversion data from the server (offer source) to the server (tracker) using the tracker's postback link.
Postback URL - the tracker link used by the offer source to send information about the conversion to PeerClick statistics.
When a conversion is made, the offer source platform registers an event in its database, then sends a postback with the tracker cid value and other necessary data back to the tracker.
Using this logic of work, you can set up a postback both from the affiliate network and from your own website / any other platform, if you have the technical ability to implement receiving and sending the tracker cid.
Track Conversions via S2S Postback URL Using Offer Element
The offer link and postback link will contain preset parameters settings if you preset and apply an Offer source element.
1. Create or edit an offer
1. Create an offer
2. Edit an offer
2. Add {clickid} macro to the offer URL
At the Offer URL field specify a parameter responsible for receiving data about PeerClick clickid and {clickid} macro in the format:
http(s)://offer-URL?offer-source-cid-parameter={clickid}, where:
offer-URL- your offer URL;
? - designation of the end of the offer URL, followed by parameters and their values;
offer-source-cid-parameter - an offer source parameter responsible for receiving data about PeerClick clickid;
{clickid} - a predefined PeerClick macro that pass PeerClick clickid value.
If the PeerClick macro is added correctly, it will be highlightened at the Available URL macros field.
3. Set required parameters to the postback URL
Using a postback link preset at the Postback URL field, add to a PeerClick cid parameter an offer source macro responsible for transferring data about PeerClick clickid for conversion tracking.
4. Add more parameters to the postback URL
If necessary, add more parameters to the postback link in the following format:
http(s)://pstb.peerclick.com/postback?PeerClick-parameter={offer-source-macro}, where:
http(s)://pstb.peerclick.com/postback- PeerClick postback URL;
? - designation of the end of the offer URL, followed by parameters and their values;
PeerClick-parameter - an available PeerClick parameter;
{offer-source-macro} - an offer source macro (passed parameter value);
& - ampersand separating different parameters in an address.
Available PeerClick parameters:
cid - gets Click ID (unique click value assigned by the tracker) to PeerClick. The parameter is required to track conversions in PeerClick.
payout - gets the amount of revenue per conversion (optional).
status - gets various conversion statuses (optional).
txid - gets a unique transaction ID for each conversion in any format (optional).
currency - gets payout currency (optional).
conversion_id - gets a custom parameter value in any format (optional).
paramN - gets a custom parameter value in any format (optional).
eventN - gets a custom event value in the form of numeric values (optional).
5. Set the postback URL
Use the posback URL with PeerClick parameters and offer source macros to set up postback in the appropriate settings section on the side of your offer source.
Track Conversions via S2S Postback URL Using Offer Source Element
1. Create or edit an offer source
1. Create an offer source
2. Edit an offer source
2. Add {clickid} macro to the offer URL tempate
Specify in the Offer source parameter field a parameter responsible for receiving data about PeerClick clickid. This parameter will be automatically added to the offer link template.
3. Set Link builder table
1. PeerClick parameters
Use available PeerClick parameters:
cid - gets Click ID (unique click value assigned by the tracker) to PeerClick. The parameter is required to track conversions in PeerClick.
payout - gets the amount of revenue per conversion (optional).
status - gets various conversion statuses (optional).
txid - gets a unique transaction ID for each conversion in any format (optional).
currency - gets payout currency (optional).
conversion_id - gets a custom parameter value in any format (optional).
paramN - gets a custom parameter value in any format (optional).
2. Offer source macros
Match the offer source macros with the listed PeerClick parameters in the Offer source macros column.
When adding an affiliate network’s macros to the fields of the Offer source macros, these macros will be automatically inserted into the postback link template in the Postback URL field.
4. Add more parameters
If necessary, add eventN parameters at the postback link in the Postback URL field in the following format:
http(s)://pstb.peerclick.com/postback?event1={offer-source-macro}, where:
http(s)://pstb.peerclick.com/postback- PeerClick postback URL;
? - designation of the end of the offer URL, followed by parameters and their values;
eventN - a PeerClick custom event parameter;
{offer-source-macro} - an affiliate network macro (passed parameter value);
& - ampersand separating different parameters in an address.
5. Apply the template
1. Choose an offer source template at the offer settings to add parameters template to an offer link:
2. Copy the posback URL with PeerClick parameters and offer source macros at the offer source settings to set up postback in the appropriate settings section on the side of your affiliate network.