Install CROforce on any website

To add a script to the head of your website, you paste it once into the template every page shares. Copy one snippet into your site's <head> and CROforce starts counting visits, clicks and conversions — and can run your tests and popups.

On this page1. Open the install screen2. Copy your snippet3. Paste it before </head>4. Verify the installationWhat the snippet doesIf the check failsNext steps

Updated November 28, 2026

Not set
Find it on the install page of your account. It stays in this browser and is never sent anywhere.

Takes about 2 minutes. You need a CROforce account and a way to edit your site's HTML header, or someone who can.

Using Shopify, WordPress or Google Tag Manager? Those have their own guides: Shopify, WordPress, Google Tag Manager.

1. Open the install screen

In CROforce, open the settings menu (the gear icon) and click Install Entail CRO. Until your site sends its first visit, the same button also shows in the top bar. Choose Any website.

Just signed up? You'll see the install page right after sign-up instead. It has the same snippet — copy it there and click Check Installation once it's live. See Install the tracking script.

The CROforce install screen listing website platforms: Any website, Google Tag Manager, WordPress, Webflow, Shopify and more

Pick Any website unless your platform has its own card.

2. Copy your snippet

Click Copy script. The snippet already contains your site token, so you can paste it as is.

The Any website install screen with the tracking snippet, a Copy script button and a Verify Installation button

Your snippet is unique to this website. The token is hidden in this screenshot.

It looks like this, with your own token in place of YOUR_SITE_TOKEN:

HTML
<link rel="preload" href="https://cdn.entail-insights.com/js/entail.js" as="script">
<link rel="preconnect" href="https://widgets.entail.ai/" crossorigin>
<script>
  !function(t,e){var o,n,p,r;e.__SV||(window.entailInsights=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src="https://cdn.entail-insights.com/js/entail.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="entailInsights",u.toString=function(t){var e="entailInsights";return"entailInsights"!==a&&(e+="."+a),t||(e+=" (stub)"),e},o="trackEvent capture opt_out_capturing has_opted_out_capturing opt_in_capturing reset".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.entailInsights||[]);
  entailInsights.init('YOUR_SITE_TOKEN', { disable_decide: false });
</script>
Paste your site token at the top of the page to fill it in.

3. Paste it before </head>

Open the template that renders your site's header — the one shared by every page — and paste the snippet just before the closing </head> tag.

HTML
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Your page</title>
  <link rel="stylesheet" href="/styles.css">

  <!-- CROforce: paste your snippet here, just before </head> -->
  <link rel="preload" href="https://cdn.entail-insights.com/js/entail.js" as="script">
  <link rel="preconnect" href="https://widgets.entail.ai/" crossorigin>
  <script> /* …your snippet… */ </script>
</head>
<body>
  …
</body>
</html>

Why the head? A/B tests change the page before visitors see it. Higher up means less chance of the original version flashing first.

Publish or deploy your site so the change is live.

4. Verify the installation

Back on the install screen, click Verify Installation. CROforce passes the check when it has received a visit from your site, or finds the script in your homepage's HTML.

Button greyed out? Verify Installation turns on after you click Copy script on that screen — click it once, even if you installed the snippet earlier.

  • The installation was successful! — you're done. Click Continue.
  • Something went wrong… — the script wasn't found. See If the check fails, then click Try again.

Check it yourself in the browser

  1. Open your website in Chrome and press F12 to open DevTools.
  2. Go to the Network tab and reload the page.
  3. Type entail in the filter. You should see entail.js load, followed by requests to t.entail-insights.com — those are your visits being counted.

What the snippet does

  1. Creates window.entailInsights right away, so your own code can call it before the script has finished loading. Calls are queued, not lost.
  2. Loads entail.js in the background without blocking your page.
  3. Once loaded, it replays the queued calls and starts counting page views, clicks and form submissions automatically.
  4. Shows the campaigns, popups and A/B tests you've published for this site.

If the check fails

What you see

What to do

The check fails right after you published

Your site or CDN may still serve a cached page. Clear the cache, wait a few minutes and try again.

entail.js never appears in the Network tab

The snippet isn't in the page. Make sure you edited the shared header template and published the change.

entail.js is blocked in the Console

Your Content Security Policy is blocking it. See
Domains to allow
.

It works on some pages only

Those pages use a different template. Add the snippet there too.

Still stuck? See Troubleshooting.

Next steps

Frequently asked questions

Will the script slow down my website?

No. The script loads asynchronously, so your page renders without waiting for it. The

preload
and
preconnect
lines start the download early so it's ready sooner.

What happens if the snippet is on the page twice?

Nothing breaks. The second copy sees the first one and does nothing, so a snippet in your theme and another in Google Tag Manager won't double-count visits.

Do I need to add it to every page?

Yes — it has to run on every page you want to measure or change. Putting it in your site's shared header or layout template covers every page at once.

Where do I find my site token?

You don't need to look it up. The snippet you copy from the install screen already includes it. Each website in your account has its own snippet.

Was this article helpful?

Try it on your own site

Add a popup, form or quiz to your site in a few minutes and see what it does for your conversions.