---
title: setClickTrackingEnabled
slug: campaign/docs/setclicktrackingenabled
docTags: 
createdAt: 2026-07-02T19:01:45.097Z
---

**Type**: void

**Parameters**

| Name      | Type    | Value                                                                                              |
| --------- | ------- | -------------------------------------------------------------------------------------------------- |
| sessionId | String  | ID of the session                                                                                  |
| mailingId | long    | ID of the mailing                                                                                  |
| mimeType  | String  | MIME type (text/plain or text/html) of the mailing.                                                |
| enabled   | boolean | TRUE: Activates click tracking for the mailing; FALSE: Deactivates click tracking for the mailing. |

**Return values**

- **Code structure**

```javascript
void setClickTrackingEnabled(String sessionId, long mailingId, String mimeType, boolean enabled)
```
