PostHog Toolbar or Heatmaps Not Loading
Workaround available Web Updated October 21, 2026
Quick answer
The PostHog toolbar (needed for heatmaps) fails when the page URL isn't authorized, CSP or an ad blocker blocks it, or ui_host isn't set behind a reverse proxy. Authorize the URL, allow PostHog in CSP and set ui_host.
Most likely fix: Authorize the URL.
Symptoms
Launching the toolbar opens your site without the toolbar, heatmaps show nothing, or the console shows 'source URI is not allowed'.
Why it happens
- Page URL not in the toolbar's authorized URLs
- Content Security Policy blocking the toolbar script or API
- Ad blocker
- Reverse proxy without ui_host set
- Frontend overwriting the #__posthog URL hash
- Wrong regional assets host for EU projects
How to fix it
Try these in order — the most common fix is first.
1. Authorize the URL
- In PostHog, open Launch Toolbar
- Add the exact URL of your site and click Save, then Launch
2. Fix proxy and region settings
- Set ui_host to https://us.posthog.com or https://eu.posthog.com in posthog.init()
- EU projects should use eu-assets.i.posthog.com for assets
3. Unblock the toolbar
- Allow PostHog domains in your CSP (Firefox is stricter than Chrome)
- Disable ad blockers while using the toolbar
4. Handle routers that rewrite the hash
- Read the __posthog value from the URL hash before your router changes it
- Call posthog.loadToolbar() with it
This guide also covers
- posthog toolbar not loading
- posthog heatmap not showing
- posthog heatmaps not working
- posthog toolbar not appearing
Still not working?
If PostHog keeps failing, you're not alone. See every PostHog problem users report or the alternatives people switch to.
Other PostHog errors
- PostHog Events Not Showing Up
- PostHog Blocked by Ad Blockers
- PostHog Session Replay Not Recording
- PostHog Replay Broken: Missing CSS, Fonts or Blank Screen
- PostHog Bill Too High
- PostHog Feature Flags Not Working or Undefined
- PostHog Pageviews Missing or Duplicated in Next.js
- PostHog Numbers Different From Google Analytics
- PostHog Identify Merging Wrong Users
- PostHog Surveys Not Showing
- Why Is PostHog So Slow?
- PostHog Not Capturing Events in Playwright or Puppeteer Tests