subtitlesConfigure Fibr Script to your website

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

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 Dashboardarrow-up-right 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.

circle-exclamation

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 →


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 [email protected]envelope and we'll help you debug.

Last updated