Setup guides
2. Install the script
Paste one tag on your site and verify it.
- Open Settings, then Domains, and click Copy snippet on the website. (Settings, then Install, shows the same snippet.)
- Paste it first in the
<head>of every page, or in your site template. Do not addasyncordefer.
<head>
<script src="https://v1.pactbase.in/sdk/v1/pactbase.js" data-org="ORG_ID" data-site="SITE_KEY"></script>
<!-- every other script after it -->
</head>- Click Verify install.
Why first, and why not async
Pactbase holds back trackers that load after it. A tag above it, or a script loaded async that runs earlier, can run before Pactbase has a chance to hold it.
If verification fails
- The snippet must be in the page's HTML, not added later by JavaScript.
- The domain you added must match the site, and be publicly reachable.
- An older snippet without
data-sitestill works but is matched by hostname. Copy the snippet again from Domains to get the site key. - The site key belongs to one website. On another domain, consent cannot be saved.
A page that only needs form consent
On a sign-up page that needs the consent block but no banner, load the script with data-banner="off". The blocks render and record as usual, with no banner, no floating button, and nothing held.
<script src="https://v1.pactbase.in/sdk/v1/pactbase.js" data-org="ORG_ID" data-site="SITE_KEY" data-banner="off"></script>All install options are in Cookie script.