# Add Custom JavaScript

**GoAffPro** provides you with the option to add custom JavaScript to load along with the referral tracking script.

To add custom JavaScript, go to the **SDK Settings** section in the **Settings** tab of the GoAffPro admin panel.

<figure><img src="/files/VukXuheLFsplnQNHQqAk" alt=""><figcaption><p>Settings > SDK Settings</p></figcaption></figure>

Here, go to the Custom Javascript section.

<figure><img src="/files/NKCZk7HXLm9PgqiW1vLM" alt=""><figcaption><p>Custom Javascript</p></figcaption></figure>

Now, click on **Edit**.

<figure><img src="/files/GBQDWXVeLJnGJLw3gdb3" alt=""><figcaption><p>Click on Edit</p></figcaption></figure>

You can accordingly add custom JavaScript code.&#x20;

<figure><img src="/files/txgYa5ph68wTDdUlembo" 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://docs.goaffpro.com/how-tos/manual-integration/custom-sdk-integration/sdk-settings/add-custom-javascript.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.
