# Rokt Destination

## Destination Info

* Accepts [Track](/docs/segment/connections/spec/track) calls.
* Refer to it as **Rokt Integration**, **Rokt** in the [Integrations object.](/docs/segment/guides/filtering-data/#filtering-with-the-integrations-object)
* This integration is **partner owned.** Please reach out to the partner's support for any issues.

The Rokt destination optimizes campaign performance by integrating conversion attribution for Rokt Ads. By integrating this conversion data, you'll unlock a suite of intelligent tools that learn from every conversion, constantly making adjustments to improve campaign targeting and bidding.

This destination is maintained by Rokt. If you have any issues, please contact the [Rokt support team](https://rokt.atlassian.net/servicedesk/customer/portal/20/group/98).

## Getting Started

1. From the Destinations catalog page in the Segment App, click **Add Destination**.
2. Search for "Rokt" in the Destinations Catalog. Select the **Rokt** destination.
3. Choose which source should send data to the Rokt destination.
4. Enter the API key provided to you by your Rokt Account manager. If you haven't received your login credentials, please reach out to them.

Once you've entered the API credentials for Rokt, the chosen source sends data through to Rokt's API.

## Supported Methods

Rokt supports the `track` API call, which can be used to send data to Rokt:

### Track

The `track` API call is how you record any actions your users perform, along with any properties that describe the action. [Learn more about the track call](/docs/segment/connections/spec/track/).
An example call would look like:

```js
analytics.track('Clicked Login Button', , {
    property1: 1,
    property2: 'test',
    property3: true
})
```

Segment sends `track` calls to Rokt as `track` events. You can use these to configure conversion goals to inform the destination predictive analyses. You can use any `track` call made in the past week as the basis for a predictive goal in the Rokt destination.

## Engage

You can send computed traits and audiences generated using [Engage](/docs/segment/engage) to this destination as a **user property**. To learn more about Engage, schedule a [demo](https://segment.com/contact/demo).

For user-property destinations, an [identify](/docs/segment/connections/spec/identify/) call is sent to the destination for each user being added and removed. The property name is the snake\_cased version of the audience name, with a true/false value to indicate membership. For example, when a user first completes an order in the last 30 days, Engage sends an Identify call with the property `order_completed_last_30days: true`. When the user no longer satisfies this condition (for example, it's been more than 30 days since their last order), Engage sets that value to `false`.

When you first create an audience, Engage sends an Identify call for every user in that audience. Later audience syncs only send updates for users whose membership has changed since the last sync.

> \[!NOTE]
>
> Real-time audience syncs to Rokt  may take six or more hours for the initial sync to complete. Upon completion, a sync frequency of two to three hours is expected.

## Settings

Segment lets you change these destination settings from the Segment app without having to touch any code.

| Field      | Description                                                                                                                              | Required | Type   |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------ |
| Account ID | For account ID, Refer to \[Rokt's documentation]\(https://docs.rokt.com/docs/developers/integration-guides/getting-started/account-id/). | Yes      | string |
| API Key    | You should receive your API Key from your Rokt account manager.                                                                          | Yes      | string |
| App ID     | You can get the App ID details from the Rokt platform in profile settings.                                                               | Yes      | string |
