# 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="https://2665225050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvnlQY2elcSlIpeLEpEAd%2Fuploads%2F2ZJULhuqLHcqcDwiN85m%2FScreenshot%202025-10-13%20at%2020.35.28.png?alt=media&#x26;token=4c511c80-ea5c-4d90-a909-c8131493ba08" 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.
