Install the pixel on HubSpot
Add the RAVE™ pixel to every HubSpot page with the site header HTML, or to one landing page with its head HTML.
2 min read · Updated Oct 5, 2026
HubSpot lets you add code to every page on your site or to a single page. Use the site-wide header unless you only want RAVE™ on one landing page.
Before you start
- Add your HubSpot domain as a site in RAVE™. See Add a site.
- Copy the site's snippet: in your RAVE™ workspace, click Sites, open the site, and use the copy button under 1. Install the pixel.
<script async src="https://rave.cxformula.com/pixel.js" data-site="YOUR_SITE_KEY"></script>
Add the pixel to every page
Open HubSpot settings
Click the settings icon in HubSpot.
Go to page templates
Open Website → Pages → Templates.
Paste into Site header HTML
Paste your RAVE™ snippet into Site header HTML, keeping any code already there.
Save
The pixel now loads on your HubSpot pages.
Add the pixel to one landing page
Open the page editor
Open the landing page in HubSpot.
Open advanced settings
Go to the page's Settings → Advanced.
Paste into Head HTML
Paste the snippet into Head HTML.
Publish
Update or publish the page.
Check that it works
- In RAVE™, open a live campaign on this site and click Send test event.
- Open your published HubSpot page in a new browser window.
- A sample card should appear within about a minute.
- Click Delete test events on the campaign page when you're done.
Troubleshooting
- No card shows. Make sure the page is published and you're viewing it on the domain you added as a RAVE™ site, not in the editor preview.
- Pages on several HubSpot domains. Add each domain as its own site in RAVE™ and use that site's snippet.
- Cards on the wrong pages. Use the campaign's Show on and Hide on rules on the Pages tab.
Next steps
To show real form submissions and closed deals, send them to your campaign's webhook URL. With Operations Hub, a HubSpot workflow can send a webhook (POST) directly; otherwise use Zapier with the "New Form Submission" trigger. See How webhooks work. The original guide is at /docs/hubspot.
Related articles
- Install the pixel on ClickFunnelsPaste the RAVE™ pixel into your ClickFunnels 2.0 funnel's head tracking code once, and it runs on every page in that funnel.
- Install the pixel on HighLevel (GoHighLevel)Add the RAVE™ pixel to a HighLevel funnel or website through its head tracking code setting.
- Install the pixel on WordPressAdd the RAVE™ pixel to every WordPress page with a header and footer plugin or your block theme's header.
Can't find it?
Send us a question, a bug or an idea. It goes straight to the RAVE™ team, and you can follow its status.