Getting Started with Custom S2S Tracking
<div>**<span class="wysiwyg-underline">About Custom S2S</span>**</div><div><div class="content-wrapper"><div class="row"><div class="X"><div class="callout callout-success">Custom tracking is available for advanced users who need to integrate their own tracking solution, not pre-integrated with CPIDroid. Tracking Link and Postback URL both are the important things for Custom S2S Tracking to work properly. </div><div class="callout callout-success"> </div><div class="callout callout-success">**<span class="wysiwyg-underline">Overview:</span>**</div>- [Generating the Tracking Link](#h_01FEDVWXKDT5PW4NB9QB6ZAAPB)
- [Preparing the Postback URL](#h_01FEDY8X5RYVGW57E6FJTBXJWV)
- [Sending the Conversion Postback](#h_01FEDY7VPTS5166C9H7V07QC2X)
- You will have to setup your own tracking link (via your own tracking solution) and it must carry the macro/placeholder**{click_id}**, which is dynamically replaced with a generated click id we supply.
- You need to check with your tracking provider to generate a tracking link from your custom tracking software provider's dashboard.
- Your tracking link should must have a url data parameter to carry our {click_id} macro. Usually, this parameter is called as Click ID or External ID by various tracking software providers.Note: Some tracking system may not have a dedicated click id data parameter, but they should have alternative parameters to carry custom data which can be used instead such as "data", "var", "custom" and "sub" ..etc.- For example, if your click id data parameter is "clickid" then tracking link should look like:-
https://example.com/tracking.php?campaign_id=abc123&clickid={click_id} ```_Note: Our system will generate & pass unique values on parameter "clickid" by replacing {click\_id} placeholder dynamically every time the tracking url is clicked by any user._- Your tracking system should catch the value of our {click\_id} and save it in their database, because if that click results into conversion later, it will have to send postback with same value.
- Our system can pass several data to your tracking url by making use of macros/placeholders we have available, kindly refer this guide : List of Macros / Placeholders available apart from {click_id}
- You can develop your own tracking url and pass our click id to your server like below example:-
https://track.yourserver.com/click.php?network=cpidroid&click_id={click_id}
You should be able to store click id, ip address and other details with the help of which you can do probabilistic attribution and send us postbacks accordingly. - You can redirect users to play store and pass our click id through "referrer" URL parameter like below example:-
https://play.google.com/store/apps/details?id=com.example.application&referrer={click_id}
Learn more at - You need to read the value of INSTALL_REFERRER to grab the click id that was passed.
Learn more at
- Once you have the click id, you can send install postback to our postback url from within the app or maybe from your server.
Risk Disclaimer for Affiliates/Agencies/Networks:-
If you are an Affiliate/Agency/Network and going to setup custom s2s with us then you can try S2S but please be aware of a few things:-
Updated on: 29/08/2026
Thank you!
