# Installation Guide: Adding the Optibase Script

To enable A/B testing, Heatmaps, and Personalization, you must add the Optibase script to your website. This single snippet powers all features across your entire workspace.

#### Step 1: Locate Your Unique Script

1. Log in to your account at [app.optibase.io](https://www.google.com/search?q=https://app.optibase.io).
2. Navigate to Workspace Settings in the sidebar.
3. Select the Custom Script tab.
4. Click on the code block to copy your unique snippet.

<figure><img src="/files/1XxmkaABX92EhLTNKlny" alt=""><figcaption></figcaption></figure>

***

#### Step 2: Where to Place the Script

For Optibase to function correctly, the script must be placed inside the `<head>` tag of your website.

Critical Requirement: You must place the script on every page where you want to run tests or track conversions. We recommend adding it to your global site settings.

**Recommended Placement:**

Paste the script as the very start of your  `<head>` tag.

HTML

```
<head>
    <optibase script />
    ...
</head>
<body> ... </body>

```

***

#### Step 3: Platform Specific Instructions

**For Webflow Users**

1. Open your Project Settings.
2. Go to the Custom Code tab.
3. Paste your Optibase script into the Head Code section.
4. Publish your site to all domains.

**For WordPress Users**

1. Log in to your WordPress Dashboard.
2. Ensure you have the Optibase WordPress Plugin installed.
3. Navigate to the Optibase settings and paste your script ID

***

#### Why the `<head>` placement is required

* Zero Flicker: Loading the script early ensures that variants are applied before the page renders. This prevents users from seeing the original version for a split second.
* Accurate Tracking: This allows Optibase to record page views and user sessions the moment the page begins to load.
* Split Test Support: Necessary for instantaneous URL redirects during split tests.


---

# 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/basics/installation-guide-adding-the-optibase-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.
