Fibr Script
Overview
The Fibr Script is a lightweight, auto-generated code snippet that activates Fibr’s optimization capabilities on your website.
Once installed, it allows Fibr to recognize visitors in real time and determine whether they match any of your configured rules — for experiments, personalization, or tracking.
It’s the foundation of how Fibr operates: identifying who the visitor is, what campaign or audience they belong to, and which experience or test they should see — all within milliseconds.
How it works:
The Fibr Script checks the visitor against your active rules and audience logic.
If a match is found, Fibr instantly loads the relevant variant or personalized experience.
The change occurs client-side during page render, ensuring zero performance drop and full visual continuity.
This means your site dynamically adapts to campaigns, ad creatives, and audience conditions without additional developer deployment.
Setup options:
You can add the Fibr Script to any website in minutes by choosing one of the options:
Add Fibr SDK to your Website

Connect with Shopify Store
Can I add the Fibr script through Google Tag Manager (GTM)?
You can add the Fibr Script through Google Tag Manager (GTM), but this is NOT recommended for performance-critical pages.
Website loading through GTM can delay initialization and affect real-time personalization.
For best results, always place the Fibr Script directly inside the <head> tag of your site.
Read More
💡 Tips from the Fibr Team:
Add the Fibr Script within the
<head>tag Place the script directly inside the<head>section of your website to ensure it loads early in the page lifecycle.Position it at the top of the
<head>tag Keep the Fibr Script above all other scripts, including tracking or analytics tags. This ensures Fibr initializes first and can deliver the correct experience before anything else runs.Avoid using other dynamic or performance-altering scripts Placing multiple asynchronous or rendering scripts with the Fibr Script can interfere with its initialization timing and variant delivery.
Add all active domains and subdomains In your Fibr workspace, whitelist every domain or subdomain where the script runs. You can also choose to apply the script domain-wide or restrict it to specific URLs for tighter campaign control.
Verify installation before creating or launching campaigns Go to Settings → Setup → Validate in your Fibr Dashboard to confirm that the SDK is firing correctly before you begin setting up experiments or personalization.
Last updated