# Setup Guide

This guide will help you set up Ninetailed as a destination in the RudderStack dashboard. It also lists the configuration settings required to correctly send data from the supported sources to Ninetailed.

## Connection compatibility

{{< destination-config >}}

{{< info >}}
For the web device mode integration, that is, when using [JavaScript SDK]({{< ref "sources/event-streams/sdks/rudderstack-javascript-sdk/_index.md" >}}) as a source, you need to first [install the Ninetailed SDK](https://docs.ninetailed.io/for-developers/experience-sdk/getting-started) as an npm package before sending the events.

{{< /info >}}

## Setup

In your [RudderStack dashboard](https://app.rudderstack.com/), add a source. Then, from the list of destinations, select **Ninetailed**.

### Connection settings

| Setting | Description |
| :----| :-----|
| Destination name | Assign a name to uniquely identify the destination. |
| Organization ID (API Key) | Enter your [Ninetailed organization ID](#faq). <br /><br />**Note**: This setting is not applicable for the web device mode integration. |

### Advanced settings

Configure the below settings to receive your data correctly in Ninetailed.

| Setting | Description |
| :----| :-----|
| Environment slug | Select your Ninetailed environment (main/development) from the dropdown. |
| Send page calls in device mode | Turn on this setting to send [`page`]({{< ref "destinations/streaming-destinations/ninetailed/device-mode.md#page" >}}) calls to Ninetailed in device mode. |
| Consent management settings | Configure the consent management settings for the specified source by choosing the **Consent management provider** from the dropdown and entering the relevant consent category IDs. See [Consent Management in RudderStack]({{< ref "data-governance/consent-management/overview.md" >}}) for more information on this feature. |

## Next steps

- [Send events in cloud mode]({{< ref "destinations/streaming-destinations/ninetailed/cloud-mode.md" >}})
- [Send events in device mode]({{< ref "destinations/streaming-destinations/ninetailed/device-mode.md" >}})

## FAQ 

#### **Where can I find the Ninetailed organization ID (API key)?**

1. Log in to your [Ninetailed dashboard](https://app.ninetailed.io/).
2. Click your organization name on the top left corner and select your environment.

{{< image src="images/event-stream-destinations/ninetailed-environment.webp" alt="Ninetailed environment ID" >}}

3. In the left sidebar, click **API Key**. You should be able to see your API key for the environment listed here.

{{< image src="images/event-stream-destinations/ninetailed-apikey-environmentid.webp" alt="Ninetailed API key" >}}


