Hi there.
I worked through the steps to create a cookie consent banner pop-up on our site. Getting it to become active was easy; however, any changes I made to the styling, content, etc, do not seem to be acknowledged by our site or the system in general. The banner I created does not show on the site, and the url that the banner generated only shows a page not found.
Please help and let me know if I missed something…
Customized banner through settings:
Banner that shows on site:
Hey @ADonshik,
Thanks for posting in the Community!
I’d like to see if any of our Community experts have insight on next steps for troubleshooting this! @Josh, @RomyFuchs1, and @Bryantworks - any thoughts here?
Shane, Senior Community Moderator
Hi @ADonshik
You’re running into two separate but related issues:
- The banner you styled doesn’t show on the site
- The direct banner URL returns 404
I’ll outline the most likely causes and how to check them quickly.
1. Check that the banner is tied to the right domain & path
Go to Privacy & Consent > Cookies.
For the domain where your site is hosted:
-
Verify the domain is added and verified
- The external domain (or subdomain) where you test the banner must be listed and verified here (e.g.
www.xyz.com, not just xyz.com if it redirects).
- If not, click Add an external domain, add the exact domain, and let HubSpot verify it via the tracking code.
-
Open “Manage banners” for that domain
- Confirm there is a banner listed and that it is published, not still in draft.
- If you duplicated or created a new banner, the live site will only use the banner that is actually published for this domain.
-
Check URL path rules (Subdirectory / URL path)
- Edit the banner and look at the URL path / path configuration. If you entered something like
fr, the banner only shows on URLs under /fr.
- For testing on the main homepage, either clear the path or set it to match exactly where you’re browsing.
If the wrong domain or a too‑narrow path is set, you’ll see an older/default banner (or none) and it will look like your styling/content changes are ignored.
2. Make sure the banner is eligible to show for you as a visitor
Even if the banner is correct, HubSpot may decide not to display it for your current visit:
-
Geo-targeting / countries
- In the banner config, check which countries are selected.
- If any countries are selected, the banner only shows to visitors whose browser IP falls in those countries.
- For testing, either include your country explicitly or clear the country targeting so the banner is shown to all visitors.
-
You already accepted a previous banner
- If you’ve already clicked “Accept” on another version of the banner, HubSpot won’t keep showing it.
- Test in an incognito window with all extensions disabled, or clear HubSpot cookies for your domain and reload.
-
Tracking code & CSS on the site
- Confirm the HubSpot Tracking Code is installed on the pages where you expect the banner.
- Make sure your site’s CSS or scripts are not hiding the banner container (e.g.
display:none overrides).
3. Why the banner URL shows “page not found”
The cookie banner is injected by the HubSpot Tracking Code on page load; it is not a standalone landing page. The “URL” you saw is usually:
- Either the URL/path rule where the banner is supposed to appear (e.g.
/fr)
- Or a system/preview link that won’t be directly accessible like a normal page.
Seeing a 404 when you paste that URL into the browser just means there’s no actual page at that path; the banner would only appear there if an existing page with that path is rendered and the tracking code is loaded.
So the core checks are:
- Does that path actually correspond to an existing page on your site?
- Is the banner configured to target that domain/path, and published?
4. Why changes to styling/content don’t show
If you made styling/text edits but nothing changed on the live banner, typical reasons are:
-
You edited a different banner than the one live on the domain
- Double‑check you opened the banner via Manage banners for the same domain you’re viewing, then click the name of the banners to edit.
- After styling/content changes, make sure you clicked Publish, not just Save.
-
Brand / cookie policy mismatch
- If you use brands, verify you didn’t configure a brand‑specific cookie policy for a different brand than the domain actually uses.
- The domain’s Brand Domain and the banner’s cookie policy/brand must match for brand-specific styling to apply.
-
Browser or cache issues
- Test in another browser or incognito, with all ad‑blockers and privacy extensions disabled. Some tools aggressively block cookie banners or remove their cookies, which makes debugging confusing.
5. Quick diagnostic steps you can run now
- Open Privacy & Consent > Cookies.
- For your production domain:
- Click Manage Banners
- Confirm:
- The expected banner is listed and published
- Domain and URL path match the URL where you’re testing
- Country targeting either includes your country or is empty.
- Open your site’s page in an incognito window (no extensions), with DevTools → Network tab open:
- Confirm
js.hs-scripts.com / js.hs-analytics.net requests are loading (HubSpot tracking code).
- Reload and see whether a banner container is briefly added and then maybe hidden by CSS.
Regards