---
title: setOpenTrackingEnabled
slug: campaign/docs/setopentrackingenabled
docTags: 
createdAt: 2026-07-02T19:01:46.737Z
---

**Type**: void

**Parameters**

| Name      | Type    | Value                                                                                            |
| --------- | ------- | ------------------------------------------------------------------------------------------------ |
| sessionId | String  | ID of the session                                                                                |
| mailingId | long    | ID of the mailing                                                                                |
| enabled   | Boolean | TRUE: Activates open tracking for the mailing; FALSE: Deactivates open tracking for the mailing. |

**Return values**

- **Code structure**

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