# Add the custom script

Before you can run tests or track conversions in Optibase, you need to add the Optibase script to your Webflow project. This allows Optibase to run on your site and communicate with the server.

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

***

### How to install the script in Webflow

1. Select and copy your custom script
   * Click to copy the script block provided (includes your unique workspace ID)
2. Open your Webflow Site Settings
   * In Webflow, click the Webflow logo (top left)
   * Click Site Settings
3. Paste the script into the Head
   * From the left sidebar, click Custom Code
   * Scroll to the Head code section
   * Paste the Optibase script here
4. Save and publish
   * Click Save Changes
   * Then click Publish to apply the update to your live site

***

### Example script snippet

```
<script src="https://cdn.optibase.io/client.js" data-optibase-id="your-workspace-id"></script>
```

> Make sure you’re using the Public script with the correct data-optibase-id.

***

### Verify installation

Once you’ve published your site:

1. Open your live website in the browser
2. Return to the Optibase dashboard
3. Click the Check button to confirm the script was detected

If the script is running correctly, you’ll see a confirmation that Optibase has detected activity from your site.

***


---

# 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.optibase.io/webflow-app/add-the-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.
