# 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](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-LwFNClqBeVJdU5kfGsv%2F-LwFT5Y0yE5p6lJVxymZ%2FAnnotation%202019-12-17%20021419.png?alt=media\&token=5eb1704b-f058-4783-80e6-b56440139871)

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

![Click on Show HTML button ](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-LwFNClqBeVJdU5kfGsv%2F-LwFTojzWqX3-82Bg5aH%2FAnnotation%202019-12-17%20021952.png?alt=media\&token=ff63a6a6-cf37-4ab8-9cea-a931ff54ea16)

* 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](https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPzLtyP46oY7cyXnkw%2F-ML5Ti8i9E_pdXt6rFog%2F-ML5UDOHvi7w42GJE9H2%2FAnnotation%202019-12-17%20022318.png?alt=media\&token=a373b590-0d9a-4c26-8ca4-7f37b564990b)

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