---
title: Configure Fibr Script to your website
slug: configure-fibr-script-to-your-website
docTags: 
createdAt: 2026-09-01T09:38:02.741Z
---

::Iframely{originalUrl="https://youtu.be/WNLk9lSXVhs?si=qdOKmcgN39gcXa2v" embedUrl="https://youtu.be/WNLk9lSXVhs?si=qdOKmcgN39gcXa2v" title="How to Add the Fibr Script to Your Website?" html="<div style=&#x22;left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.25%;&#x22;><iframe src=&#x22;https://www.youtube.com/embed/WNLk9lSXVhs?rel=0&#x22; style=&#x22;top: 0; left: 0; width: 100%; height: 100%; position: absolute; border: 0;&#x22; allowfullscreen scrolling=&#x22;no&#x22; allow=&#x22;accelerometer *; clipboard-write *; encrypted-media *; gyroscope *; picture-in-picture *; web-share *;&#x22; referrerpolicy=&#x22;strict-origin&#x22;></iframe></div>"}

Set up the Fibr script on your website to enable personalization, track user behavior, and run seamless experiments using Fibr AI.

## What You’ll Need

- Access to your website's HTML (specifically the \<head> section)
- Admin or developer permissions to edit your site's code
- "Manage Settings" access on Fibr Dashboard

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

## Step-by-Step Installation

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

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

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

:::hint{type="warning"}
Avoid GTM installation Google Tag Manager adds a delay that can cause flickering. Click here to see the impact.
:::

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

:::WorkflowBlockItem
Save and publish your changes.
:::

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

:::WorkflowBlockItem
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

:::Heading{depth="3" indent="1"}
Fixing Flickering
:::

:::Paragraph{indent="1"}
If you notice a brief flash where the original page appears before the personalized version loads, try these fixes:
:::

:::Paragraph{indent="1"}
**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.
:::

:::Paragraph{indent="1"}
**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.
:::

:::Paragraph{indent="1"}
[Learn more about impact of Fibr Script on Web Performance →](docId\:a87TC_U6cFxfrCaCl7eab)
:::

:::Heading{depth="3" indent="1"}
Validation Failed:
:::

:::Paragraph{indent="1"}
If the validation check doesn't pass:
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Double-check the script placement.** It must be inside the \<head> tag, not the \<body>.
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Clear your cache.** Your browser or CDN might be serving an older version of your page.
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Verify the URL matches exactly.** Include or exclude www. consistently with how your site loads.
:::

:::Paragraph{listStyleType="disc" indent="2"}
**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.

