> For the complete documentation index, see [llms.txt](https://docs.edgetag.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.edgetag.io/channels/segment/onboarding.md).

# 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="https://1474399258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJWZKbUk0hRISkCIj2p4%2Fuploads%2F8tEU8HlxZSS4Hz4v9rCx%2Fimage.png?alt=media&amp;token=5cf6bc63-3930-401b-a208-30a29817aca8" 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="https://1474399258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJWZKbUk0hRISkCIj2p4%2Fuploads%2Fd3txEhB98QtjAYTsKrrb%2Fimage.png?alt=media&amp;token=257452c7-641b-4491-80d0-77c0e8f3a11f" 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="https://1474399258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJWZKbUk0hRISkCIj2p4%2Fuploads%2FdupbG0prkQ7i3B1Dvxj2%2Fimage.png?alt=media&amp;token=cb2b2240-bc04-48dc-adca-e85f28c9e3a0" 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="https://1474399258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJWZKbUk0hRISkCIj2p4%2Fuploads%2FAwi8GrFIcOjTQUmGI34F%2Fimage.png?alt=media&amp;token=0fa2eb2f-c3c0-4939-9365-7de49141d10c" 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="https://1474399258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJWZKbUk0hRISkCIj2p4%2Fuploads%2FZL2nNxE7RsGiHG4utszU%2Fimage.png?alt=media&amp;token=d83a93d9-0610-4e55-8c6a-0453695eea77" 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="https://1474399258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZJWZKbUk0hRISkCIj2p4%2Fuploads%2FF3mCpfBde2l8IScoLtF4%2Fimage.png?alt=media&amp;token=60fca39c-7d4e-41dd-b427-bbe9087fec94" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
