Format of the data sent
Reference for whoever is going to receive the postbacks in your system (CRM, n8n, Make, your own API). If you're not on the technical side, send this article to your developer.
How the request arrives
| Item | Value |
|---|---|
| Method | POST |
| Body format | JSON (Content-Type: application/json) |
| Destination | The URL added to the postback, exactly as it was saved (always with https://) |
| When | On each event of the type chosen in the postback. If you have two postbacks for the same event, each URL gets its own send |
| Expected response | Any 2xx status, as fast as possible |
Best practices for your endpoint
- Respond fast with
200and process the data later, in the background. - Keep the endpoint live. Each event is sent only once to each postback.
- Protect the URL. The request carries no authentication header. Use an address that's hard to guess, e.g. with a secret code in the path (
https://webhook.demoagency.com/track4you/a8f3k2). - Use the body's
typeto know which event arrived, especially if the same URL receives more than one event.
General structure
Every send has the same blocks. Channel join and leave also bring the telegram block and the dates.
| Block | What it brings |
|---|---|
type | The event: pageview, button_click, enter_channel or left_channel |
origin | The page the lead came from and the campaign parameters |
user | Visitor data: IP, browser, location and, on join and leave, the Telegram ID and the dates |
tracking | Meta identifiers linked to the visitor, when available |
track4you | Identification of the event and the funnel in Track4you |
telegram | The channel the lead joined or left (only on enter_channel and left_channel) |
type values
| Event on screen | type |
|---|---|
| "Page View" | pageview |
| "Button Click" | button_click |
| "Channel Join" | enter_channel |
| "Channel Leave" | left_channel |
Example: Page View
The same format applies to button_click.
{
"type": "pageview",
"origin": {
"url": "https://blacklaunch.com/vip?utm_source=facebook&utm_medium=cpc&utm_campaign=black-launch",
"utms": "utm_source=facebook&utm_medium=cpc&utm_campaign=black-launch",
"domain": "blacklaunch.com"
},
"user": {
"ip": "203.0.113.10",
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",
"country": "US",
"state": "FL",
"city": "Miami",
"zip": "33101"
},
"tracking": {
"fbp": "fb.1.1792602012000.1234567890",
"fbc": "fb.1.1792602012000.IwAR0demoClick"
},
"track4you": {
"event_id": "5f2c1a9e-7b3d-4e8a-9c6f-2d1e0b9a8c7d",
"funnel_id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"funnel_name": "Black Launch",
"link": "https://t.me/+DemoInviteAbc123"
}
}Example: Channel Join
{
"type": "enter_channel",
"origin": {
"url": "https://blacklaunch.com/vip?utm_source=facebook&utm_medium=cpc&utm_campaign=black-launch",
"utms": "utm_source=facebook&utm_medium=cpc&utm_campaign=black-launch",
"domain": "blacklaunch.com"
},
"user": {
"ip": "203.0.113.10",
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",
"country": "US",
"state": "FL",
"city": "Miami",
"zip": "33101",
"telegram_id": "5512345678",
"enter_channel_date": "2026-10-21T22:40:12.000000Z"
},
"tracking": {
"fbp": "fb.1.1792602012000.1234567890",
"fbc": "fb.1.1792602012000.IwAR0demoClick"
},
"track4you": {
"event_id": "5f2c1a9e-7b3d-4e8a-9c6f-2d1e0b9a8c7d",
"funnel_id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"funnel_name": "Black Launch",
"link": "https://t.me/+DemoInviteAbc123"
},
"telegram": {
"channel_id": "-1001234567890",
"channel_name": null
}
}Example: Channel Leave
Same as the join, with "type": "left_channel" and the left_channel_date field inside user:
{
"type": "left_channel",
"user": {
"telegram_id": "5512345678",
"enter_channel_date": "2026-10-21T22:40:12.000000Z",
"left_channel_date": "2026-10-28T09:15:47.000000Z"
}
}The snippet above only shows what changes. The origin, tracking, track4you and telegram blocks and the other user fields arrive in full, as in the join example.
Field reference
| Field | Type | What it is |
|---|---|---|
type | string | The event that generated the send (table above) |
origin.url | string | Full address of the source page, with the campaign parameters |
origin.utms | string | Only the URL's campaign parameters (UTMs), in the key=value&key=value format. It's a string, not an object: split it on & if you need each UTM |
origin.domain | string | Domain of the source page |
user.ip | string | Visitor's IP |
user.user_agent | string | Visitor's browser and device |
user.country | string | Country |
user.state | string | State |
user.city | string | City |
user.zip | string | ZIP/postal code (may be partial) |
user.telegram_id | string | The lead's Telegram ID. Only on enter_channel and left_channel |
user.enter_channel_date | date | Date and time of the channel join, in ISO 8601 (UTC). Only on enter_channel and left_channel |
user.left_channel_date | date | Date and time of the leave, in ISO 8601 (UTC). Only on left_channel |
tracking.fbp | string | Meta browser identifier, when available. Useful if your system also sends events to Meta |
tracking.fbc | string | Meta click identifier, when the lead came from an ad |
track4you.event_id | string (UUID) | Identifier of the visit in Track4you. The page view, the click and the join from the same visit can carry the same value: to avoid duplicates in your system, combine event_id with type |
track4you.funnel_id | string (UUID) | Funnel ID (the same as in the join link https://t4y.io/v2/...) |
track4you.funnel_name | string | Funnel name, as it was added |
track4you.link | string | Channel invite link used by this funnel |
telegram.channel_id | string | Telegram channel ID. Only on enter_channel and left_channel |
telegram.channel_name | string | Channel name. It may come as null: to identify the channel, use channel_id |
Fields may come empty
Fields in origin, user and tracking may arrive as null when the information isn't available (e.g. fbc for someone who didn't come from an ad, or origin.utms for someone who arrived without campaign parameters). Handle these cases in your system.
Test the receiving end
The "Test Postback" button sends sample data to your URL and shows "Postback sent successfully!" when it responds with 2xx. It's there to confirm the endpoint is live. To validate the full format, generate a real event in the funnel (open the page, click the button or join the channel) and check what arrived. See Add and test a postback.
