Install CROforce on WordPress

Paste your CROforce snippet into WordPress's <head> — with a header-scripts plugin (easiest, survives theme updates) or by editing your theme's header.php.

On this page1. Copy your snippet2a. Add it with a header-scripts plugin (recommended)2b. Or paste it into header.php3. Verify the installationTroubleshootingNext steps

Updated November 28, 2026

To install CROforce on WordPress, copy your snippet from CROforce and add it to every page's <head>. The easiest way is a plugin that inserts code into the site header; the other is pasting it before </head> in your theme's header.php. Both work — pick one, not both.

Takes about 5 minutes. You need a WordPress administrator login.

1. Copy your snippet

In CROforce, click Install Entail CRO (in the top bar, or in the settings menu under the gear icon), choose WordPress and click Copy script. Right after sign-up, use the WordPress tab and Copy Code instead.

The Install Entail CRO page with the WordPress tab selected, showing three steps: open Appearance then Theme File Editor or your header plugin, paste the code just before the closing head tag, and save

The WordPress tab on the install page after sign-up.

Any plugin that adds code to the site header works — for example WPCode, or Insert Headers and Footers.

  1. In WordPress, go to Plugins › Add New, search for a header-and-footer code plugin, install it and click Activate.
  2. Open the plugin's settings and find its Header box (the code that goes into <head>).
  3. Paste your CROforce snippet there.
  4. Save.

2b. Or paste it into header.php

  1. Go to Appearance › Theme File Editor (called Theme Editor on older WordPress versions).
  2. Pick your active theme in the theme dropdown on the right, then click header.php in the file list.
  3. Copy everything in the file and save it somewhere as a backup.
  4. Find the closing </head> tag and paste your snippet just before it.
  5. Click Update File.
HTML
<head>
  <meta charset="<?php bloginfo( 'charset' ); ?>">
  <?php wp_head(); ?>

  <!-- 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>

Theme updates erase this. When your theme updates, header.php is replaced and the snippet disappears. Paste it into a child theme, or use a plugin, so it stays.

3. Verify the installation

  1. If you use a caching plugin or your host caches pages, clear the cache.
  2. Back in CROforce, click Verify Installation (or Check Installation after sign-up).

See Check your installation for what each result means.

Troubleshooting

What you see

What to do

The check fails right after you saved

Clear your caching plugin's and your host's cache, then try again.

WordPress won't save header.php

Some hosts block file editing. Use a header-scripts plugin.

A security or optimization plugin strips or delays the script

Exclude cdn.entail-insights.com from script combining, minifying and "delay JavaScript" settings.

The browser blocks entail.js

Your Content Security Policy needs CROforce's domains. See
Domains to allow
.

Next steps

Frequently asked questions

Plugin or header.php — which is better?

A plugin. It keeps the snippet when your theme updates, and you can't break your site with a typo in a template. Edit header.php only if you use a child theme or can't install plugins.

I don't see Theme File Editor under Appearance.

Block themes and some hosts hide it, and it's absent on many WordPress.com plans. Use a header-scripts plugin instead.

Does it work with caching plugins?

Yes, but clear your cache after adding the snippet, or visitors keep getting cached pages without it until the cache expires.

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.