# Embed Affiliate Portal In Your Store

Usually, the affiliate portal is loaded up on a separate domain. However, you can choose to embed the affiliate portal in your store.&#x20;

#### You can do this by following the steps given below:

* In your Shopify control panel, click on **Online Store**, after this click on the **Pages** tab.&#x20;
* Now to create a new page click on the **Add page** button

![Add Page](/files/-LwFT5Y0yE5p6lJVxymZ)

* In the **Add page** window, click on the code input mode (**Show HTML**) in the editor.

![Click on Show HTML button ](/files/-LwFTojzWqX3-82Bg5aH)

* Here write the following code in the editor:

```markup
<iframe src="https://helloworld.goaffpro.com" 
        id="affiliate_page"></iframe>
<script type="text/javascript" src="https://static.goaffpro.com/embed.js"></script>
```

{% hint style="info" %}
You must change the **src** property of **iframe** with a link to your affiliate portal. i.e. change [https://helloworld.goaffpro.com](https://helloworld.goaffpro.com/create-account) with your own affiliate portal's link in the code above.
{% endhint %}

* After writing the code, click on **Save** to save the page.

![Write Code and Save](/files/-ML5UDOHvi7w42GJE9H2)

{% embed url="<https://youtu.be/h80s2T7C-bk>" %}
Embed Affiliate Portal In Your Store
{% endembed %}


---

# 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://docs.goaffpro.com/affiliate-portal-customization/advanced-customization/embed-affiliate-portal-in-your-store.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.
