> For the complete documentation index, see [llms.txt](https://api.senderwiz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.senderwiz.com/customer/reports/track-subscriber-click-for-campaign.md).

# Track Subscriber Click for Campaign

Simulate or log a subscriber's click on a tracked campaign link using the unique campaign, subscriber, and URL hash values.

### 🔗 Track Subscriber Click for Campaign

Register a tracked click event by a subscriber for a specific URL inside a campaign.

***

#### 🔹 HTTP Request

```http
GET API-URL/campaigns/CAMPAIGN-UNIQUE-ID/track-url/SUBSCRIBER-UNIQUE-ID/URL-HASH
```

***

#### 🔸 URL Segments

| Segment                | Required | Description                                 |
| ---------------------- | -------- | ------------------------------------------- |
| `CAMPAIGN-UNIQUE-ID`   | Yes      | Unique ID of the campaign.                  |
| `SUBSCRIBER-UNIQUE-ID` | Yes      | Unique ID of the subscriber.                |
| `URL-HASH`             | Yes      | Hashed version of the tracked campaign URL. |

***

#### 🔐 Authorization Header

```
X-API-KEY: your-api-key-here
```

***

#### 💻 PHP Example

```php
// Track subscriber click for campaign
$response = $endpoint->trackUrl('CAMPAIGN-UNIQUE-ID', 'SUBSCRIBER-UNIQUE-ID', 'URL-HASH');

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
```

***

#### 📦 Sample JSON Response

```json
{
  "status": "success",
  "data": {}
}
```
