Documentation · Prynt Reveal · Install

HubSpot CMS

Site header HTML covers every page, landing page and blog post hosted on HubSpot. HubSpot Forms embedded anywhere can identify the visitor on submit.

Add the snippet

  1. Copy the snippet from the console (Websites → your site → Install).
  2. HubSpot: **Settings → Website → Pages → (choose the domain) → Site header HTML**. Paste it. Save. Repeat for each domain, or at *All domains*.
  3. Blog and landing pages inherit it.
<script src="https://api.pryntid.com/cdn/prynt-reveal.umd.js" async
  onload="PryntReveal.reveal({publicKey:'pk_live_YOUR_PUBLIC_KEY',website:'example.com'})"></script>

HubSpot Forms (any site)

The embedded form posts to HubSpot, not to your page, so the generic forms option cannot read it. Use the form's submit callback instead — the visitor gave you the email, it is a first-party identity:

// HubSpot Forms embed: the submission is a first-party identity on your own site.
window.addEventListener('message', (event) => {
  if (event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormSubmitted') {
    const email = event.data.data?.submissionValues?.email;
    if (email) client.identify({ email });        // client = PryntReveal.reveal(...)
  }
});

Notes

  • HubSpot's cookie banner: when *Require opt-in* is on, HubSpot exposes _hsp.push(['addPrivacyConsentListener', cb]); pass consent: () => consentGiven from that listener. Sites using a CMP in the detected list need nothing.
  • Connect the HubSpot integration in the console to push identified companies into your CRM as prynt_* properties with a timeline event.

Run the Test Script

  1. In the console go to Websites → your site → **Test Script**. It fetches your page from our side and runs the seven checks: snippet present, public key, website match, CSP script-src, CSP connect-src, consent manager, script position and www redirect.
  2. Open your site with ?prynt_debug=1 to see the live panel from the browser's point of view (consent, CMP, storage, cspBlocked, last send).
  3. Visit two or three pages. The pulse in the console shows the last event within seconds; the first companies appear as soon as a business network visits.

A cspBlocked: true or a failed CSP check means your Content-Security-Policy needs the two lines from CSP and storage. Running a consent manager? Consent explains what is detected and what is sent before the visitor decides.

Next: Next.js / React

Last updated 2026-11-03 · Limits · Visitor opt-out