Install on WordPress
Plan needed: self-hosted WordPress: any. WordPress.com: any paid plan (free plans cannot add scripts).
Where to paste
- Easiest: install a header/footer code plugin (for example WPCode), open Code Snippets > Header & Footer, and paste into Header.
- Or in a block theme: Appearance > Editor cannot add scripts; use the plugin. In a classic child theme, add it before
</head>inheader.php.
<script src="https://{ASSET_HOST}/s/v1/pr.js" data-project="{projectPublicId}" async></script>Cache and optimisation plugins
- Purge the page cache after pasting: WP Rocket (Clear cache), LiteSpeed Cache (Purge All), W3 Total Cache, WP Super Cache, and your CDN (Cloudflare: Caching > Purge Everything).
- Exclude
pr.jsfrom minify, combine, delay JS and defer (WP Rocket: File Optimization > Excluded JavaScript Files; LiteSpeed: JS Excludes; Autoptimize: Exclude scripts). If the checker says "minify plugin altered the script", this is why.
If the site has a Content-Security-Policy
Add our hosts (the install checker prints the exact ones for your project):
script-src https://{ASSET_HOST}
connect-src https://{API_HOST}
img-src https://{ASSET_HOST} data: blob:Ad blockers
Our file names and host are neutral and the script sends no analytics, so most blockers leave it alone. If a client still sees "The review tools could not load", ask them to pause their ad blocker for this site, or send them the screenshot review link instead.
Check it
Paste the live URL into Check install in TweakTick. Normal visitors are not affected: the script only switches on for links that carry a review token.