> For the complete documentation index, see [llms.txt](https://docs.shipped.club/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shipped.club/features/affiliate-program.md).

# Affiliate Program

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

Shipped is equipped with an Affiliate program page, designed to improve the conversion.

The affiliate program system is provided by Lemon Squeezy out of the box.

You only need to enable the affiliate program in your Lemon Squeezy store and configure your affiliate link in the file `config.ts` into the variable `affiliateProgramLink`.

## How to activate your affiliate program

1. Activate and configure Affiliates on the [Lemon Squeezy Portal](https://app.lemonsqueezy.com/affiliates).
2. Open `config.ts` and update `affiliateProgramLink` (replace `yourstore` with your LS store name).
3. Set `<store_name>` in the file `LemonSqueezyAffiliateScript.tsx`:&#x20;

   ```javascript
   window.lemonSqueezyAffiliateConfig = { store: "<store_name>" };
   ```

The Lemon Squeezy tracking script is already included in the provider component, when a user lands on your website from an affiliate link, and they subscribe, they will be automatically counted as conversions from an affiliate.

{% code title="src/app/providers.tsx" %}

```tsx
export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <SessionProvider>
      <Toaster />
      <UserdeskChat />
      <CrispChat />
      <LemonSqueezyAffiliateScript /> // <-- LS tracking script
      <CacheProvider>
        <ChakraProvider theme={customTheme}>{children}</ChakraProvider>
      </CacheProvider>
    </SessionProvider>
  );
}
```

{% endcode %}


---

# 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.shipped.club/features/affiliate-program.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.
