> 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.md).

# Trybe

Trybe is an affiliate and influencer marketing attribution platform for e-commerce brands. The EdgeTag Trybe integration covers both browser and server-side event tracking. The browser SDK handles Trybe initialisation, click ID capture, and standard e-commerce events. The server side sends the confirmed purchase to the Trybe Attribution API with the click ID attached for attribution.

|                        |                                                    |
| ---------------------- | -------------------------------------------------- |
| **Channel identifier** | `trybe`                                            |
| **NPM package**        | `@blotoutio/providers-trybe-sdk`                   |
| **Attribution API**    | `POST https://jointrybe.com/attribution/v1/orders` |
| **Consent category**   | Advertising                                        |

### Event Flow

**Browser SDK** — The Trybe pixel is loaded on the storefront (either auto-injected by EdgeTag or pre-installed). The pixel sets `window._trybe.vid` which is the visitor ID used for attribution. The browser SDK fires standard e-commerce events (`ViewContent`, `AddToCart`, `InitiateCheckout`, `Purchase`) by calling the corresponding `window._trybe.track*` methods.

**Server side** — Only the `Purchase` event is sent to the Trybe Attribution API from the edge. The click ID (captured from the `?trybe=` affiliate URL parameter) is attached as the `vid` and is mandatory for attribution. As a fallback, EdgeTag also reads the `ugc_vid_{storeId}` cookie set by the pixel. If no visitor ID is found, the server-side Purchase call is skipped.

### Click ID Capture

When a visitor arrives via a Trybe affiliate link (e.g. `https://yourstore.com?trybe=CLICK_ID`), EdgeTag captures the `trybe` query parameter at the edge and persists it for the session. This click ID is then attached to the server-side Purchase event for attribution.

### Useful Links

* [Trybe Dashboard](https://jointrybe.com)
* [Trybe Attribution API Documentation](https://docs.jointrybe.com)


---

# 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/trybe.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.
