Install the tracking script

The tracking script is one snippet you paste into your site's <head>. It counts visits and conversions and shows your widgets, popups and tests. You copy it from the Install Entail CRO screen.

On this pageWhere to find your snippetInstall with AIWhat the script doesWhere to paste itAfter you paste itNext 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.

To install CROforce, copy your tracking snippet from the Install Entail CRO screen and paste it into the header your site shares across every page, just before the closing </head> tag. You do it once per website. This page explains where to find your snippet, what it does, and which guide to follow for your platform.

Where to find your snippet

Your snippet contains your website's site token, so always copy it from CROforce rather than from another site. There are two places to get it.

Right after sign-up

When you create your account, CROforce opens Install Entail CRO on Your Site as the last step. Pick how you build your site, then click Copy Script, or switch to Use AI (see below). Click Skip to do it later.

After you publish a widget

If CROforce hasn't seen your site yet, publishing shows One step left with two buttons: Install Entail CRO opens the install screen, and Do It with AI opens it straight on the AI message. Your widget stays saved either way.

Any time later

  1. Click Install Entail CRO in the top bar. The button shows there until CROforce receives its first visit from your site; after that, open the settings menu (the gear icon) and click Install Entail CRO.
  2. Choose your platform from the list, or Any website.
  3. Keep Do It Manually and click Copy Script, or switch to Use AI.
The Install Entail CRO on your site screen listing platforms: Any website, Google Tag Manager, WordPress, WebFlow, Weebly, Wix, Shopify, Joomla, Magento, Bigcommerce, Hubspot, Drupal, React and NextJS

The in-app install screen lists more platforms.

Install with AI

If you build your site with an AI tool like Lovable or Cursor, or you'd rather have ChatGPT or Claude walk you through it, let AI do the install. Every platform's install page has a Use AI tab.

  1. Open Install Entail CRO, pick your platform and switch to Use AI.
  2. Click Copy Message. The message carries your snippet and says where it goes on the platform you picked.
  3. Paste it into your AI tool or chat and follow what it says.
  4. Come back and click Verify Installation.

This is the message for Any website, with your snippet in the middle:

Code
I want to add the Entail script to my website (yoursite.com). It must load on every page, 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… entailInsights.init('YOUR_SITE_TOKEN', { disable_decide: false }); </script>

If you can edit my site's code, add it to the shared <head> (the layout or template every page uses) and publish.
If you can't, ask me which platform my site is built on, then walk me through it one step at a time.
When it's done, tell me how to check it's live: open my homepage, view the page source and search for "entail".
Paste your site token at the top of the page to fill it in.

An AI tool that edits your code makes the change itself. In a plain chat, the AI gives you the steps for your platform. Either way, check the result with Verify Installation.

What the script does

  • Counts visits and actions. Page views, clicks and form submissions are recorded automatically — see Automatically tracked events. Your goals turn some of them into conversions.
  • Shows what you publish. Campaigns, widgets, popups, quizzes and A/B tests appear on your site only through the script.
  • Loads without slowing your page. It downloads in the background and doesn't block your page from showing.
  • Gives your code an API. window.entailInsights lets you send your own events — see Track custom events.

For a line-by-line look, see How the snippet works.

Where to paste it

In the <head> of every page, as high as you can — ideally just before </head> in the template all your pages share. Being in the head matters for A/B tests: the script can swap in the test version before the visitor sees the original.

Your site runs on

Follow this guide

Shopify

Install on Shopify

WordPress

Install on WordPress

Google Tag Manager

Install with Google Tag Manager

Webflow

Install on Webflow

React, Next.js or another single-page app

Install on React and Next.js

Wix, Weebly, Joomla, Magento, BigCommerce, HubSpot or Drupal

Install on other platforms

Anything else, or a site you code by hand

Install on any website

Strict security settings? If your site sends a Content Security Policy, allow CROforce's domains or the browser will block the script. See Domains to allow.

After you paste it

Publish your site, then check the installation: click Check Installation on the page after sign-up, or Verify Installation on the in-app install screen. See Check your installation.

If you need visitors' consent before tracking, read Consent and privacy before you go live.

Next steps

Frequently asked questions

Is the snippet the same for every website?

No. Each website in your account has its own site token inside the snippet. Copy it from CROforce with the right website selected.

Can I install it with Google Tag Manager?

Yes. Add it as a Custom HTML tag that fires on all pages. See Install with Google Tag Manager.

What if I paste it twice?

Nothing breaks. A second copy sees the first one and does nothing, so visits aren't counted twice.

Can an AI tool install it for me?

Yes. On the install screen, switch to Use AI and click Copy Message, then paste it into your AI tool or chat.

Does CROforce work without the script?

No. Without it CROforce can't count visits or show anything on your site.

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.