> For the complete documentation index, see [llms.txt](https://support.fibr.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.fibr.ai/get-started-with-fibr-ai/fibr-script/configure-fibr-script-to-your-website.md).

# Configure Fibr Script to your website

{% embed url="<https://youtu.be/jVxJEuI9PMA>" %}

Adding the Fibr Script takes about five minutes. Once it's installed and validated, you're ready to start running experiments and personalization campaigns.

***

#### **Before You Begin**

Make sure you have:

* Access to your website's HTML (specifically the `<head>` section)
* Admin or developer permissions to edit your site's code
* Your Fibr account credentials

***

#### Step-by-Step Installation

**Step 1:** Log in to your [Fibr Dashboard](https://app.getfibr.co) and click **Settings** in the left-hand menu.

**Step 2:** Go to the **Setup** section. You'll see your unique Fibr Script displayed here.

**Step 3:** Copy the script and paste it into the `<head>` section of your website.

Place it as high in the `<head>` as possible, before other scripts like analytics or tracking pixels. This ensures Fibr loads first and can deliver experiences without delay.

{% hint style="warning" %}
**Avoid GTM installation** Google Tag Manager adds a delay that can cause flickering. [**Click here**](/get-started-with-fibr-ai/fibr-script/impact-of-fibr-script-using-gtm.md) to see impact.&#x20;
{% endhint %}

```html
<head>
  <!-- Fibr Script goes here, at the top -->
  <script>...</script>
  
  <!-- Other scripts below -->
</head>
```

**Step 4:** Save and publish your changes.

**Step 5:** Back in the Fibr Dashboard, enter your site URL in the field provided and click **Add URL**.

**Step 6:** Click **Validate**, then **Check now**.

You'll see a success message once Fibr confirms the script is working correctly.

***

#### **Handling Subdomains**

If you add the script to your main domain (e.g., `example.com`), it will automatically apply to all subdomains (e.g., `blog.example.com`, `shop.example.com`).

However, if you want the script to run only on specific pages or subdomains, you'll need to add it individually to those pages instead.

**Remember to whitelist all domains:** In your Fibr workspace, make sure every domain and subdomain where the script runs is added to your allowed list. Otherwise, Fibr won't recognize traffic from those URLs.

***

#### **Troubleshooting: Fixing Flickering**

If you notice a brief flash where the original page appears before the personalized version loads, try these fixes:

**Option 1: Use the anti-flicker script** In the Setup section of your dashboard, you'll find an alternate version of the script designed to prevent flickering. Switch to this version if the standard script causes issues.

**Option 2: Check your script placement** Flickering often happens when the Fibr Script loads too late. Make sure it's positioned at the very top of your `<head>` tag, before any other scripts.

[Learn more about impact of Fibr Script on Web Performance →](/get-started-with-fibr-ai/fibr-script/impact-of-fibr-script-on-web-performance.md)

***

#### **Validation Failed?**

If the validation check doesn't pass:

* **Double-check the script placement.** It must be inside the `<head>` tag, not the `<body>`.
* **Clear your cache.** Your browser or CDN might be serving an older version of your page.
* **Verify the URL matches exactly.** Include or exclude `www.` consistently with how your site loads.
* **Check for script blockers.** Ad blockers or privacy extensions can sometimes interfere with validation.

Still having trouble? Reach out to us at <support@fibr.ai> and we'll help you debug.
