> 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/trybe/onboarding.md).

# Onboarding

The Trybe integration uses both the browser pixel and the server-side Attribution API. The pixel handles visitor identification and browser event tracking; the server sends the Purchase with the captured click ID for attribution. This guide walks you through finding the required values in Trybe and activating the channel in EdgeTag.

### Video Guide

#### Step 1: Get Your API Key

1. Log in to your [Trybe Dashboard](https://jointrybe.com)
2. Navigate to **Settings → API**
3. Copy your **API Key**

{% hint style="warning" %}
Keep your API key secret. It authenticates all server-side attribution requests sent from the EdgeTag edge to Trybe.
{% endhint %}

#### Step 2: Get Your Store ID

1. In the Trybe Dashboard, navigate to **Store Settings**
2. Copy your **Store ID** — this is the identifier used to match the `ugc_vid_{storeId}` visitor cookie set by the Trybe pixel

#### Step 3: Get Your Pixel Code and Pixel Domain

EdgeTag uses the Trybe pixel to initialise `window._trybe` on the browser and capture the visitor ID (`vid`) required for attribution.

1. In the Trybe Dashboard, navigate to **Pixel Settings**
2. Copy your **Pixel Code** — it looks like `px_6524bd646578`
3. Copy your custom **Pixel CDN Domain** — e.g. `https://tracks.yourstore.com`

{% hint style="info" %}
If the Trybe pixel is already installed on your storefront via a theme script or tag manager, EdgeTag will detect `window._trybe` on the page and skip auto-injection. In that case, Pixel Code and Pixel Domain are not required in EdgeTag, but the pixel must still be present for browser-side tracking and visitor identification to work.
{% endhint %}

#### Step 4: Add the Channel in EdgeTag

1. Log in to your [EdgeTag Dashboard](https://app.edgetag.io)
2. Navigate to **Channels** and click **Add Channel**
3. Search for **Trybe** and select it
4. Enter a name for this channel

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

#### Step 5: Enter Your Credentials

Fill in the required fields:

| Field            | Value                                                                   |
| ---------------- | ----------------------------------------------------------------------- |
| **API Key**      | The API key from Step 1                                                 |
| **Store ID**     | The store identifier from Step 2                                        |
| **Pixel Code**   | Your Trybe pixel code from Step 3 (e.g. `px_6524bd646578`)              |
| **Pixel Domain** | Your pixel CDN domain from Step 3 (e.g. `https://tracks.yourstore.com`) |

#### Step 6: Configure Excluded Events (Optional)

Use the **Excluded Events** selector to suppress specific EdgeTag events from being sent to Trybe.

{% hint style="info" %}
Excluded events are suppressed on both the browser side (no `window._trybe.track*` call) and on the server side. Since server-side attribution only fires for `Purchase`, excluding other events only affects browser pixel calls.
{% endhint %}

#### Step 7: Affiliate Link Setup

No additional configuration is required for affiliate link tracking. EdgeTag automatically captures the `?trybe=` query parameter from your Trybe affiliate URLs.

Ensure your affiliate links include the `trybe` query parameter:

```
https://yourstore.com/products/example?trybe=CLICK_ID
```

When a visitor lands on your site via this link, EdgeTag captures and persists the click ID at the edge. This click ID is then attached to the server-side `Purchase` event as the visitor ID (`vid`) for attribution.

{% hint style="warning" %}
The click ID is mandatory for server-side attribution. Without it, EdgeTag falls back to the `ugc_vid_{storeId}` cookie set by the pixel. If neither is available when a purchase fires, the attribution call is skipped.
{% endhint %}

Click **Save & Deploy** to activate the channel.


---

# 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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
