ClickFunnels
Add OnyxMetric analytics to your ClickFunnels funnels
ClickFunnels 2.0 has a Header Code field at three levels: Site Settings for the whole workspace, Funnel settings for every page in one funnel, and the page editor for a single page. Add the tag at one level only.
Copy your tracking snippet
In OnyxMetric, open your site's Site Settings and copy the tracking script. It looks like this:
<script src="https://app.onyxmetric.com/api/script.js?siteId=YOUR_SITE_ID" async></script>YOUR_SITE_ID is the numeric ID of your site.
Add the snippet to ClickFunnels
- In your workspace, open the Site & Blog app in the left menu and click Site Settings.
- Paste the snippet into Header Code.
- Save.
This covers every page in the workspace: funnel pages, store pages, courses, blog posts, and site pages.
- Open Funnels and click the Settings gear next to the funnel.
- Paste the snippet into Head Code.
- Click Update Funnel.
The code loads on every page of that funnel only.
- Open the page in the page editor.
- Go to Settings > Tracking Code and paste the snippet into Header Code.
- Click Save.
The code loads on this page only.
Header code does not run inside the editor, so test on the live page URL.
Check that it works
Load your live site and click through a few pages. Pageviews show up in the OnyxMetric dashboard within seconds.
If nothing arrives:
- View the page source and search for
script.js?siteId=to confirm the tag is present. - In the browser's Network tab, check that
script.jsreturns200and that requests go to/api/track. - Turn off ad blockers, or proxy the script through your own domain.
- Read script troubleshooting for other causes.
Troubleshooting
- Duplicate pageviews: the snippet is present at more than one level. Keep a single copy.
- Not in the page source: check which level you pasted it at. Site Settings covers the workspace, funnel settings cover that funnel, and the page editor covers one page.
- jQuery: ClickFunnels pages already include jQuery, so do not load it again in the same header block. A second copy can break page scripts.
Next steps
- Track custom events such as signups, purchases, and clicks.
- Identify users to tie sessions to accounts.
- Proxy the script through your own domain to get past ad blockers.
- Script attributes let you skip or mask URLs and tag events.