# Install OptiMonk on MerchantPro with a custom script

Canonical URL: https://support.optimonk.com/en/articles/install-optimonk-on-merchantpro-with-a-custom-script

On MerchantPro you add OptiMonk as an external script under **Website > Custom scripts**. MerchantPro asks for the script address, not the full code, so the OptiMonk guide gives you exactly that address to copy.

---

## How do I open the MerchantPro guide in OptiMonk?

1. In OptiMonk, open **Settings**, then the **Domains** tab.
2. Click the row of your MerchantPro domain, then **Connection guide**.
3. Under *What e-commerce platform do you use?* choose **MerchantPro**.

---

## Step 1: Copy the OptiMonk code

The guide says *MerchantPro asks for the script address, not the full code. Copy this:* Click the copy button next to the address.

---

## Step 2: Add the code in your MerchantPro admin

1. In a new tab, log in to your MerchantPro admin and open **Website > Custom scripts**.
2. Click **Add script** in the top right corner.
3. Name it (for example OptiMonk) and paste the address on the **External script** tab.
4. Set the following and save:

- Loading model: **Async**
- Location: **Header**
- **All site pages**

---

## Step 3 (optional): Connect your product catalog

This step is optional: it is needed for product recommendation campaigns. The code works without it. The guide only shows this step if connecting the product catalog is available for your account.

1. In your MerchantPro admin, open **Settings > API and webhooks**.
2. Click **Add API user** in the top right corner, name it, tick **Catalog permissions - Read only** and **Website**, and save.
3. Enter the user and the password in the **API user** and **API password** fields of the OptiMonk guide and click **Save**.

When it works, the guide says *Connected — we can keep your product catalog in sync.*

- *Invalid credentials. Please verify that you've entered the correct credentials.* Copy the API user and password again from MerchantPro.
- *Missing permissions. Check your API key settings.* Tick Catalog permissions - Read only and Website for the API user in MerchantPro, then save again.

To disconnect the catalog, click **Revoke**. After that OptiMonk cannot update your product catalog.

---

## How do I check that it works?

Click **Check now** in the bar at the bottom of the guide.

- *It works! OptiMonk is on your site.* Your campaigns can now show in your store.
- *Just waiting for one visitor to confirm it.* Open your store yourself in a new tab; as soon as it loads, the guide updates.
- *We can't see the code on your site yet.* Check that the script is saved with Location: Header and All site pages, then check again.

---

## Can someone else do it for me?

Click **Need Help?** at the bottom of the guide. You can hand the steps to an AI assistant with **Ask Claude** or **Ask ChatGPT**, or choose **Email it to my developer** to send the code and the steps to whoever manages your store.
