# Onboarding

Segment channels offer a straightforward setup process using the Write Key to link your Segment account with EdgeTag. This connection allows your site to stream events into Segment. Let's walk through the steps.

### Video Guide <a href="#video-guide" id="video-guide"></a>

{% embed url="<https://www.loom.com/share/c7d472ea08144d0cabae6fec6d7b232f?sid=46d826bc-2b64-4ce5-9982-ec8369ca3e03>" %}

### Add Channel <a href="#add-channel" id="add-channel"></a>

To add a channel, begin by entering the channel's name. We recommend choosing a name that clearly describes the channel you are adding. This will assist with debugging if any issues arise. Once you have entered the name, you'll need to get your Write Key from your Segment account.

<figure><img src="/files/ea0itKOgRyedE5gGT5fs" alt=""><figcaption></figcaption></figure>

### Get Write Key from Segment <a href="#get-write-key-from-segment" id="get-write-key-from-segment"></a>

Navigate to your [Segment workspace](https://app.segment.com/) and select **Sources** under **Connections** from the left menu. Click **Add Source** to begin creating a new source for EdgeTag.

<figure><img src="/files/C3iu9PYPHFy5AW5epNpf" alt=""><figcaption></figcaption></figure>

In the catalog, search for **Node.js** and select it from the available options. Click **"Add Source"** to proceed with setting up the Node.js source.

<figure><img src="/files/hTHzcqLmn87rgEh5NSJQ" alt=""><figcaption></figcaption></figure>

Fill out the source configuration form with a descriptive name for your EdgeTag integration (such as "EdgeTag"). This name will help you identify the source later. Click **Add Source** to create the source.

<figure><img src="/files/vxfwimRDLSeqjbMQXet4" alt=""><figcaption></figcaption></figure>

Once the source is created, you'll see your **Write Key** displayed on the source overview page. This key is what EdgeTag will use to authenticate and send events to your Segment workspace.

<figure><img src="/files/izKWCBaKKuHAN5H10ZAr" alt=""><figcaption></figcaption></figure>

Copy the Write Key and return to EdgeTag. Paste the Write Key into EdgeTag's **Write Key** field to complete the connection.

<figure><img src="/files/VbamXs5JPP0CGwl0p36h" alt=""><figcaption></figcaption></figure>

After entering your Write Key, click **Save & Deploy** to finalize the integration.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.edgetag.io/channels/segment/onboarding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
