# Reddit Conversions API

## Destination Info

* Accepts [Page](/docs/segment/connections/spec/page), [Alias](/docs/segment/connections/spec/alias), [Group](/docs/segment/connections/spec/group), [Identify](/docs/segment/connections/spec/identify), [Track](/docs/segment/connections/spec/track) calls.
* Refer to it as **Reddit Conversions Api**, **Reddit Conversions API** 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 [Reddit Conversions API](https://ads-api.reddit.com/docs/v2/#tag/Conversions-API) allows advertisers to send conversion events from Segment directly to Reddit, without needing website code. By building a sustainable server-side connection more resilient to signal loss, you can gain stronger campaign performance with improved measurement, targeting, and optimization.

## Benefits of Reddit Conversions API

* **Clear mapping of data**: Actions-based destinations enable you to define the mapping between the data Segment receives from your source and the data Segment sends to Reddit.
* **Prebuilt mappings**: Mappings for Reddit Standard Events, like Purchase and AddToCart, are prebuilt with the prescribed parameters and is available for customization.
* **Streamlined stability and security**: Integrate and iterate without client-side limitations, like network connectivity or ad blocker issues.
* **Privacy-focused**: Stay compliant with rapidly evolving requirements with automatic PII hashing and flexible controls that let you adapt what data you share.
* **Maximum event measurement**: Capture more events with improved accuracy across different browsers, apps, and devices to get a unified view of your customer's journey from page view to purchase.
* **Data normalization**: Data is normalized before hashing to ensure the hashed value matches across sources and is in line with [Reddit data requirements](https://business.reddithelp.com/helpcenter/s/article/advanced-matching-for-developers).

This destination is maintained by Reddit. For any issues with the destination, [contact the Reddit support team](mailto:adsapi-partner-support@reddit.com).

## Getting started

1. From the Segment web app, click **Catalog**, then click **Destinations**.
2. Search for "Reddit Conversions API" in the Destinations Catalog, and select the destination.
3. Select the source that will send data to the Reddit Conversions API and follow the steps to name your destination.
4. On the Settings tab, enter in your [Reddit Conversion Token](https://business.reddithelp.com/helpcenter/s/article/conversion-access-token) and Pixel ID (You can find your pixel ID in the [Events Manager](https://ads.reddit.com/events-manager), and it should match the business account's pixel ID found in [Accounts](https://ads.reddit.com/accounts)) and click **Save**.
5. Follow the steps in the Destinations Actions documentation on [Customizing mappings](/docs/segment/connections/destinations/actions/#customize-mappings).

## Destination Settings

| Field            | Description                                                                                                                                                                              | Required | Type     |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- |
| Pixel ID         | Unique identifier of an ad account. This can be found in the Reddit UI.                                                                                                                  | Yes      | string   |
| Conversion Token | The conversion token for your Reddit account. This can be found by following the steps mentioned \[here]\(https://business.reddithelp.com/helpcenter/s/article/conversion-access-token). | Yes      | password |
| Test Mode        | Indicates if events should be treated as test events by Reddit.                                                                                                                          | No       | boolean  |

## Available Presets

Reddit Conversions API has the following presets

| Preset Name           | Trigger                                                                                                            | Default Action        |
| --------------------- | ------------------------------------------------------------------------------------------------------------------ | --------------------- |
| Add to Wishlist       | Event type = "track" and event = "Product Added to Wishlist"                                                       | Send Standard Event   |
| Reddit Browser Plugin | Event type = "track", Event  type = "identify", Event  type = "group", Event  type = "page", Event  type = "alias" | Reddit Browser Plugin |
| Purchase              | Event type = "track" and event = "Order Completed"                                                                 | Send Standard Event   |
| Search                | Event type = "track" and event = "Products Searched"                                                               | Send Standard Event   |
| Sign Up               | Event type = "track" and event = "Signed Up"                                                                       | Send Standard Event   |
| Lead                  | Event type = "track" and event = "Lead Generated"                                                                  | Send Standard Event   |
| Add to Cart           | Event type = "track" and event = "Product Added"                                                                   | Send Standard Event   |
| Page Visit            | Event type = "page"                                                                                                | Send Standard Event   |
| View Content          | Event type = "track" and event = "Product Viewed"                                                                  | Send Standard Event   |

## Available Actions

Build your own Mappings. Combine supported [triggers](/docs/segment/connections/destinations/actions/#components-of-a-destination-action) with the following Reddit Conversions API-supported actions:

> \[!NOTE]
>
> Individual destination instances have support a maximum of 50 mappings.

* [Send Custom Event](#send-custom-event)
* [Send Standard Event](#send-standard-event)
* [Reddit Browser Plugin](#reddit-browser-plugin)

### Send Custom Event

Send a Custom Conversion Event to Reddit

Send Custom Event is a **Cloud** action.

| Field                   | Description                                                                                                                                                                  | Required | Type     |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- |
| Event At                | The RFC3339 timestamp when the conversion event occurred                                                                                                                     | Yes      | DATETIME |
| Custom Event Name       | A custom event name that can be passed when tracking\_type is set to "Custom". All UTF-8 characters are accepted and custom\_event\_name must be at most 64 characters long. | Yes      | STRING   |
| Click ID                | The Reddit-generated id associated with a single ad click.                                                                                                                   | No       | STRING   |
| Products                | The products associated with the conversion event.                                                                                                                           | No       | OBJECT   |
| User                    | The identifying user parameters associated with the conversion event.                                                                                                        | No       | OBJECT   |
| Data Processing Options | A structure of data processing options to specify the processing type for the event.                                                                                         | No       | OBJECT   |
| Screen Dimensions       | The dimensions of the user's screen.                                                                                                                                         | No       | OBJECT   |
| Event Metadata          | The metadata associated with the conversion event.                                                                                                                           | No       | OBJECT   |
| Conversion ID           | The unique conversion ID that corresponds to a distinct conversion event. Use this for event deduplication. If not hashed, Segment will hash this value.                     | No       | STRING   |
| Enable Batching?        | When enabled, Segment will send events in batches.                                                                                                                           | No       | BOOLEAN  |

### Send Standard Event

Send a Standard Conversion Event to Reddit

Send Standard Event is a **Cloud** action.

| Field                   | Description                                                                                                                                              | Required | Type     |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- |
| Event At                | The RFC3339 timestamp when the conversion event occurred                                                                                                 | Yes      | DATETIME |
| Tracking Type           | One of Reddit CAPI's standard conversion event types. To send a Custom event to Reddit use the Custom Event Action instead.                              | Yes      | STRING   |
| Click ID                | The Reddit-generated id associated with a single ad click.                                                                                               | No       | STRING   |
| Products                | The products associated with the conversion event.                                                                                                       | No       | OBJECT   |
| User                    | The identifying user parameters associated with the conversion event.                                                                                    | No       | OBJECT   |
| Data Processing Options | A structure of data processing options to specify the processing type for the event.                                                                     | No       | OBJECT   |
| Screen Dimensions       | The dimensions of the user's screen.                                                                                                                     | No       | OBJECT   |
| Event Metadata          | The metadata associated with the conversion event.                                                                                                       | No       | OBJECT   |
| Conversion ID           | The unique conversion ID that corresponds to a distinct conversion event. Use this for event deduplication. If not hashed, Segment will hash this value. | No       | STRING   |
| Enable Batching?        | When enabled, Segment will send events in batches.                                                                                                       | No       | BOOLEAN  |

### Reddit Browser Plugin

Enriches Segment payloads with data from the Reddit Pixel

Reddit Browser Plugin is a **Web** action. The default Trigger is `type = "track" or type = "identify" or type = "page" or type = "group" or type = "alias"`

This action does not have any fields.

## Attribution signal matching

At least one attribution signal is required with each conversion event. Send as many signals as possible to improve attribution accuracy and performance.

* **Recommended Signals**:
  * Reddit Click ID
  * Reddit UUID
  * IP Address
  * Email
  * User Agent
  * Screen Dimensions
* **Additional Signals**:
  * Mobile Advertising ID
  * External ID

## PII Hashing

Segment creates a SHA-256 hash of the following fields before sending to Reddit. If you hash the values before sending it to Segment, it must follow the hashing format described in the [Reddit Advanced Matching documentation](https://business.reddithelp.com/helpcenter/s/article/advanced-matching-for-developers) to properly match.

* Email
* Mobile Advertising ID
* IP Address
* External ID

## Deduplication with the Reddit Pixel

If you implement both the [Reddit Pixel](https://business.reddithelp.com/helpcenter/s/article/reddit-pixel) and [Conversions API (CAPI)](https://business.reddithelp.com/helpcenter/s/article/Conversions-API) and the same events are shared across both sources, deduplication is necessary to ensure those events aren't double-counted.

The integration automatically pre-maps the Segment `messageId` to the Reddit Conversion ID. If you wish to change this, you can pass a unique conversion ID for every distinct event to its corresponding Reddit Pixel and CAPI event. Reddit will determine which events are duplicates based on the conversion ID and the conversion event name. This is the best and most accurate way to ensure proper deduplication, and Reddit recommends this method since there's less risk of incorrect integration, which can impact attribution accuracy.

To ensure your events are deduplicated:

* Create a unique conversion ID for every distinct event. You can set this as a random number or ID. Similarly, you could set this to the order number when tracking purchase events.
* Include the event in the Reddit Pixel and CAPI.
* Ensure the conversion event name and conversion ID for its corresponding events match.

For more information on deduplication, see the [Reddit Event Deduplication documentation](https://business.reddithelp.com/helpcenter/s/article/event-deduplication).

## Verify events in the Reddit Events Manager

After you start sending events, you can navigate to the Reddit Events Manager to see if the events are being received in near real-time. For more information, see the [Reddit Events Manager documentation](https://business.reddithelp.com/helpcenter/s/article/Events-Manager).

## 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 Reddit Conversions API 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     |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- |
| Pixel ID         | Unique identifier of an ad account. This can be found in the Reddit UI.                                                                                                                  | Yes      | string   |
| Conversion Token | The conversion token for your Reddit account. This can be found by following the steps mentioned \[here]\(https://business.reddithelp.com/helpcenter/s/article/conversion-access-token). | Yes      | password |
| Test Mode        | Indicates if events should be treated as test events by Reddit.                                                                                                                          | No       | boolean  |
