Install the pixel on WordPress
Add the RAVE™ pixel to every WordPress page with a header and footer plugin or your block theme's header.
2 min read · Updated Oct 5, 2026
On WordPress the RAVE™ pixel goes in your site-wide header, so it loads on every page. There are two common ways to add it.
Before you start
- Add your WordPress 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>
Option 1: a header and footer plugin
This is the easiest route and survives theme changes and updates.
Install a header plugin
For example WPCode or Insert Headers and Footers, from Plugins → Add New in your WordPress admin.
Open the header setting
In the plugin, go to Code Snippets → Header & Footer.
Paste into Header
Paste your RAVE™ snippet into the Header box.
Save
The pixel now loads on every page of the site.
Option 2: a block theme's header
If you use a block theme and prefer not to add a plugin:
Open the Site Editor
Go to Appearance → Editor.
Edit the header
Open the header template part.
Add a Custom HTML block
Paste your RAVE™ snippet into it.
Save
Save the template part so it applies site-wide.
Check that it works
- In RAVE™, open a live campaign on this site and click Send test event.
- Open your site in a private browser window (so you're not served a logged-in or cached version).
- A sample card should appear within about a minute.
- Click Delete test events on the campaign page when you're done.
Troubleshooting
- Nothing shows after saving. Clear your caching or optimization plugin's cache, and any CDN cache, so visitors get the new header.
- An optimization plugin delays or combines scripts. If cards don't appear, exclude
pixel.jsfrom script delay or combine settings. - Cards show on checkout. Add checkout and thank-you paths to the campaign's Hide on rules on the Pages tab.
Next steps
- Opt-in forms: most form plugins work with RAVE™'s auto form capture. In your campaign's Sources tab, add an Auto form capture rule for the page with the form, and submissions are recorded as sign-ups with no webhook.
- WooCommerce orders: send them with a WooCommerce webhook pointed at your campaign's webhook URL. See How webhooks work.
The original guide is at /docs/wordpress.
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 KajabiAdd the RAVE™ pixel to your whole Kajabi site with header page scripts, or to a single landing page with its header code.
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.