# Redirect user to hosted campaign

In this article, we'll guide you through creating a seamless referral flow that redirects users from your website to your Referral Rocket-hosted campaign.

### Key Benefits of This Approach

1. **Custom Marketing Page**: Design a dedicated webpage that showcases your program details while perfectly aligning with your brand's visual identity. This allows you to create a tailored experience that resonates with your audience.
2. **Simplified Program Management**: Leverage Referral Rocket's robust platform to handle the complexities of your referral or affiliate program, freeing you to focus on your core business activities.

### Step-by-Step Referral Flow Example

#### Step 1: Create a Branded Program Page

Develop a dedicated webpage that:

* Highlights your referral/affiliate program's key details
* Matches your brand's design and aesthetic
* Includes a clear call-to-action button that redirects users to your Referral Rocket campaign

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

More examples of branded affiliate pages

1. <https://senja.io/affiliates>
2. <https://curiosity.ai/affiliates>
3. <https://www.malwarebytes.com/affiliates>
4. <https://www.smartsuite.com/affiliate-program>
5. <https://mailparser.io/mailparser-affiliate-program/>

#### Step 2: User Redirection

When users click the button, they'll be directed to your Referral Rocket-hosted campaign page. Pro tip: You can create a custom URL within your domain that points to the hosting URL, ensuring a seamless and professional experience.

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

#### Step 3: Program Enrollment

After landing on the campaign page, users can:

* Join your referral program
* Receive a unique referral link
* Start sharing the link with friends and networks

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


---

# 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://referral-rocket.gitbook.io/docs/getting-started/campaigns/installing-tracking-your-referral-campaign/option-2-custom-solution/redirect-user-to-hosted-campaign.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.
