Install guide
Install OfferProof AI on plain HTML
Add the tracking script to a hand-built or static site.
Page builders rename their menus often, so we describe what to look for rather than promise exact clicks. If a name below doesn't match your screen, search your builder's help pages for the goal in bold.
Copy your snippet
In OfferProof AI, open Tracked sites, add your site, and copy the snippet from its setup page. It looks like this, with your own site ID and key:
<script>window.offerproof=window.offerproof||function(){(offerproof.q=offerproof.q||[]).push(arguments)}</script>
<script async src="https://cdn.offerproof.net/op.js" data-site="YOUR_SITE_ID" data-key="YOUR_SITE_KEY"></script>
Keep both tags together, and copy yours from the app: YOUR_SITE_ID and YOUR_SITE_KEY are placeholders and won't work. In Domains that may send events, enter the domain your visitors see in the address bar. Subdomains are included, and events from anywhere else are refused.
Add it to plain HTML
On a site you edit by hand the goal is simple: put the snippet inside <head>, on every page you want to measure.
- Open the page's HTML, or the shared layout or include if your site has one.
- Paste the snippet just before
</head>. - Save and upload the changed files, or rebuild and deploy your site.
With a shared layout you only do this once. Without one, repeat it on each page. Pages you export from an OfferProof AI campaign for a tracked site already have the snippet, so leave those as they are.
Check it works
- Publish the page, then open it with
?op_test=1on the end of its address. The setup page has this test link ready for your first domain. It proves the script runs, and isn't counted in your numbers or your allowance. - Back in the app, press Check installation.
- Open the page normally, without the test link. New visits appear within a minute.
If nothing arrives
- Check the snippet is inside <head> on the page you opened, and that the page was republished after you added it.
- Check the page's address is on one of this site's allowed domains. Subdomains of an allowed domain work; a different domain does not.
- Turn off ad blockers and privacy extensions for the test, then reload the page.
- If your page uses data-consent="required", accept the cookie banner: nothing is sent until the visitor agrees.
- If your site sets a Content-Security-Policy, allow script-src https://cdn.offerproof.net and connect-src https://e.offerproof.net https://cfg.offerproof.net.
- Page builders can cache old pages. Clear the cache, then open the test link again.
Before you send traffic
The script never reads what visitors type. You are responsible for your own visitor notices. If visitors must agree to analytics first, add data-consent="required" to the second tag and call offerproof('consent','granted') from your cookie banner: nothing is stored or sent before that.
Stuck? Open a support ticket and tell us your builder and page address. Other builders are in the install guides.