> ## Documentation Index
> Fetch the complete documentation index at: https://docs-v2.adscrush.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lead Tracking

> Track lead form submissions with pixel, postback, or SDK

Leads are form submissions (name, phone, email) from landing pages. You can also capture optional address details (`address`, `pincode`, `city`, `state`) on every lead.

## Submission Methods

| Method | Best For |
| - | - |
| **Pixel** | Simple landing pages, no backend |
| **Postback API** | Server-side, CRMs, affiliate networks |
| **Web SDK** | JavaScript landing pages, SPAs |

## Quick Start

### Pixel

```html theme={null}
<img src="https://track.adscrush.com/lead/pixel?tid={click_id}&name=John&phone=%2B1234567890&email=john@example.com" width="1" height="1" style="display:none" />
```

### Postback

Copy-paste ready — just replace the `tid` and `X-API-Key` with your own values:

```bash theme={null}
curl -X POST https://track.adscrush.com/lead/postback \
  -H "Content-Type: application/json" \
  -H "X-API-Key: <YOUR_API_KEY>" \
  -d '{"tid": "550e8400-e29b-41d4-a716-446655440000", "name": "John", "phone": "+1234567890", "email": "john@example.com", "address": "221B Baker Street", "pincode": "400001", "city": "Mumbai", "state": "Maharashtra"}'
```

PHP (cURL) equivalent:

```php theme={null}
<?php

$data = [
  'tid'     => '550e8400-e29b-41d4-a716-446655440000',
  'name'    => 'John',
  'phone'   => '+1234567890',
  'email'   => 'john@example.com',
];

$ch = curl_init('https://track.adscrush.com/lead/postback');
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_POST           => true,
  CURLOPT_HTTPHEADER     => [
    'Content-Type: application/json',
    'X-API-Key: <YOUR_API_KEY>',
  ],
  CURLOPT_POSTFIELDS     => json_encode($data),
]);

$response = curl_exec($ch);
$status   = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo $status === 200 ? "Lead tracked!\n" : "Error ({$status}): $response\n";
```

### SDK

```javascript theme={null}
AdsCrushSDK.trackLead({
  name: "John Doe",
  phone: "+1234567890",
  email: "john@example.com"
})
```

**See also:** [Lead Postback API](/tracking/lead-postback) · [Lead Pixel](/tracking/lead-pixel) · [Track Leads (SDK)](/sdk/track-lead)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.