> For the complete documentation index, see [llms.txt](https://partners.botpenguin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://partners.botpenguin.com/partner-platform-guidelines/configurations/custom-script.md).

# Custom Script

The **Custom Script** tab in the Agency Panel allows administrators to manage custom scripts (such as Google Analytics, Hotjar, or other third-party tools) for their customer accounts.&#x20;

This feature enables seamless integration of analytics tools, support chatbots/agents or third-party app functionalities into customer accounts.

### Configuring Custom Script

1. Log in to your Agency Panel.
2. Click on "Configurations" from the left panel.&#x20;
3. Then click on "Custom Script" inside Configurations.
4. If no script is added, you will get option to "Add Script".&#x20;

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

5. Click on the Add Script button to move forward.
6. Then enter a display name for your added Custom Script.&#x20;
7. Enter the custom script.

* Open the third party tool which you want to use in your customer's accounts.
* Search for "Setup" or "Installation" in this tool. There you can find **SCRIPT.** \
  (Here we have used MS Clarity)
* If the custom script is of an chatbot or agent, copy the installation code from "**Install Your Chatbot - Custom Built**"

<figure><img src="/files/24vGnP2zg1x2J9fGy7Y7" alt=""><figcaption><p>MS Clarity</p></figcaption></figure>

* Copy the Script Code from the tool and paste the same in your agency panel.
* Then click on Add Script. This will save the configurations made and add the script in to your customer's account.

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

8. Now your custom script will be in use for all the customers in your agency panel.
9. Make sure to turn on the status button to keep the script active.
10. You can also update with changes or delete the script.&#x20;

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

Here as we have added MS Clarity in our customer's account, now we can easily track customer accounts for user-friendly behavioral analytics to understand how people navigate and interact within the account.

{% hint style="info" %}
REMEMBER&#x20;

* The script complies with any data privacy or security policies applicable to your customers.
* Only authorized administrators should add or manage scripts to avoid unintended changes.
  {% endhint %}

#### Need Help?

Please feel free to reach out to us at <mark style="color:$primary;"><support@botpenguin.com></mark>, in case of any questions or concerns.


---

# 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:

```
GET https://partners.botpenguin.com/partner-platform-guidelines/configurations/custom-script.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.
