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 WordPress tab on the install page after sign-up.
2a. Add it with a header-scripts plugin (recommended)
Any plugin that adds code to the site header works — for example WPCode, or Insert Headers and Footers.
- In WordPress, go to Plugins › Add New, search for a header-and-footer code plugin, install it and click Activate.
- Open the plugin's settings and find its Header box (the code that goes into
<head>). - Paste your CROforce snippet there.
- Save.
2b. Or paste it into header.php
- Go to Appearance › Theme File Editor (called Theme Editor on older WordPress versions).
- Pick your active theme in the theme dropdown on the right, then click
header.phpin the file list. - Copy everything in the file and save it somewhere as a backup.
- Find the closing
</head>tag and paste your snippet just before it. - Click Update File.
<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
- If you use a caching plugin or your host caches pages, clear the cache.
- 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 | Some hosts block file editing. Use a header-scripts plugin. |
A security or optimization plugin strips or delays the script | Exclude |
The browser blocks | Your Content Security Policy needs CROforce's domains. See Domains to allow . |
Next steps
- Check your installation: Confirm CROforce sees your site.
- Set up goals: Decide what counts as a conversion.
- Use Google Tag Manager instead: If your site already loads GTM.
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.

/filters:quality(80)/cro-force/gettingstartedgatewordpress-1795547781810.png)