Clicks
Track Click
Record a click event for affiliate tracking. This endpoint uses burst rate limiting for high-frequency tracking.
POST
Use this endpoint to track when a visitor clicks an affiliate link. This is useful for server-side tracking implementations. You can later use the returned ID as
Note: If this click is the first stable identifier you have, keep the returned
referral_id in Affonso server-side tracking endpoints.
Body Parameters
The unique identifier of the affiliate program. The program must belong to your team.
The affiliate’s tracking ID. The affiliate must have an approved partnership with the specified program.
Sub-parameter 1 for custom tracking. Maximum 255 characters.
Sub-parameter 2 for custom tracking. Maximum 255 characters.
Sub-parameter 3 for custom tracking. Maximum 255 characters.
Sub-parameter 4 for custom tracking. Maximum 255 characters.
Sub-parameter 5 for custom tracking. Maximum 255 characters.
The referring URL where the click originated. Maximum 2000 characters.
Visitor’s IP address. Maximum 45 characters (supports IPv6).
Visitor’s user agent string. Maximum 1000 characters.
UTM source parameter. Maximum 255 characters.
UTM medium parameter. Maximum 255 characters.
UTM campaign parameter. Maximum 255 characters.
UTM term parameter. Maximum 255 characters.
UTM content parameter. Maximum 255 characters.
Google Click ID for Google Ads tracking. Maximum 255 characters.
Facebook Click ID for Facebook Ads tracking. Maximum 255 characters.
Microsoft Click ID for Microsoft Ads tracking. Maximum 255 characters.
TikTok Click ID for TikTok Ads tracking. Maximum 255 characters.
Response
The response includes the created click object.Always
true for successful responsesThe created click object.
id and send it as referral_id in your first backend conversion or event request. Once the referral is linked to your own customer_id or external_user_id, later events can use those identifiers instead.