How to Set Up the Cookie Banner on Your Website
Turn on the cookie banner, then put each script in the right box with the right cookie category so it only loads after a visitor agrees.
Visitors can see a cookie banner on your site and choose which optional cookies to allow. Tracking and advertising scripts wait until they agree. Strictly necessary cookies stay on so the site can load.
Turn on the cookie banner
You can do this yourself from the admin.
Check the category of each script
Go to Site Settings > AgentFire Settings > Header/Footer Scripts & Metas and check the category on each box that has code. See Cookie categories and Where each script goes below. If you are not sure, choose Analytics & Marketing.
Changing cookie choices later
After a visitor makes a choice, the banner goes away. They can change that choice later with a Cookie Settings link.
On most sites that link is already on the Privacy Policy page (Managed Privacy Policy). You don't need to add anything in the footer.
Add a link yourself only if GDPR & Cookie Consent shows a warning that Managed Privacy Policy is not enabled. Put it in the footer or on the Privacy Policy page:
<a href="#cookie_settings_modal">Cookie Settings</a>Or use the shortcode [cookie_settings_modal].
To add it in the footer, go to Headers & Footers > Footers, edit every footer used on the site, paste the link, and save.
Optional: edit the banner text
On Site Settings > AgentFire Settings > GDPR & Cookie Consent you can change:
The banner text and button labels
The Cookie Settings window title and descriptions
Colors, so the banner matches your site
In the banner text you can link to the settings window with [settings]settings[/settings].
You don't need to change any of this for the banner to work.

What visitors will see
A cookie banner until they make a choice.
Choices for Essential, Functional, and Analytics & Marketing cookies.
After they choose, the banner stays gone as they browse.
They can open Cookie Settings later from the Privacy Policy page (or from a footer or Privacy Policy link you added, if Managed Privacy Policy is off).

A few things you may notice on the live site:
Some embedded content (videos, calendars, booking widgets) may show a placeholder until the visitor allows Functional cookies, or until they click to load it.
Advertising and analytics reports will likely show fewer tracked conversions. Tracking only runs for visitors who allow Analytics & Marketing cookies. The visits themselves have not disappeared.
Listing search and maps keep working. That's expected.
Cookie categories
Go to Site Settings > AgentFire Settings > Header/Footer Scripts & Metas. Each box in use has a category dropdown.

Essential (always load)
JS or CSS the site breaks without
Always
Functional
Optional tools that are not ads (chat, video, Calendly)
After the visitor allows Functional
Analytics & Marketing
Ads, pixels, trackers, GTM, GA
After the visitor allows Analytics & Marketing
If you are not sure, choose Analytics & Marketing.
Maps, listing search and other built-in features are already set. Use the rest of this section if you pasted tracking or widget code yourself.
Categorize with AI
Categorize scripts with AI is in the sidebar on Header/Footer Scripts & Metas (the whole site) and on Advertising and Tracking Scripts in Page settings (that page or post only). It can suggest categories and move code between the boxes on that screen. That is a suggestion, not a legal review.
Nothing goes live until you click Update Settings. The categories on the site are the ones you save.
A run on Header/Footer Scripts & Metas doesn't change a page or post. A run in Page settings doesn't change the site-wide boxes or other pages.

Where each script goes
Put each script in the box from this table. Using a different box can stop it from working, or load it under the wrong cookie category.
GA4 / gtag.js
Head first
Analytics & Marketing
Google Tag Manager (plus its noscript tag)
Head first, and the noscript tag in Body before closing tag or Footer after closing tag (*)
Analytics & Marketing
Meta Pixel (plus its noscript tag)
Head first, and the noscript tag in Body before closing tag or Footer after closing tag (*)
Analytics & Marketing
Two marketing scripts that both need the head
Head first
Analytics & Marketing
Hotjar, Microsoft Clarity, session recording
Head first
Analytics & Marketing
JSON-LD / schema markup
Site Meta Tags
Essential
Custom CSS or JS with no outside requests
Site Meta Tags, Body after opening tag, or Footer after opening tag
Essential
Google Ads remarketing
Footer after closing tag
Analytics & Marketing
Chat widget
Footer before closing tag
Functional
(*) Ignore the official recommendation to put <noscript> early. It isn't relevant for normal visitors. Put the GTM or Meta noscript tag in Body before closing tag or Footer after closing tag.
JS, CSS or fonts loaded from another site: you choose the category. If you are not sure, choose Analytics & Marketing. Functional code goes in Head after opening tag. Essential code goes in Site Meta Tags. Categorize may fill this in. You still choose what to save.
A few more rules:
If the code uses jQuery, put it in Body after opening tag or a footer box, not in Head after opening tag.
Don't put Facebook, Google Tag Manager or
gtagtracking on Essential. Those belong on Analytics & Marketing.If two scripts work together (for example one uses
fbqorgtagfrom the other), give them the same category.If a box shows a warning, read it before you save.
Page-level scripts
Edit opens the visual editor. Advertising and Tracking Scripts is not there.
Open Pages or Posts, then on the row open Actions and choose Page settings. Look for Advertising and Tracking Scripts:
Script after head opening tag
Script after body opening tag
Script before body closing tag
The same Categorize sidebar is on this screen. It only changes those three boxes on this page or post.
Check the home page first, then any landing pages you run ads to. Use the same table as above. On a page, the Pixel or GTM script goes in Script after head opening tag, and the noscript tag goes in Script before body closing tag.

Custom code in the Spark Editor
Edit also opens the Spark Editor. A Coder widget can hold custom HTML or JavaScript (for example a third-party embed). When Cookie Consent is on, that widget has a Cookie Consent Category dropdown: Essential, Functional, or Analytics & Marketing.
The default is Essential, so the code loads before the visitor chooses. If it's a widget, chat, video, calendar or tracker, change the category. If you are not sure, choose Analytics & Marketing.

Categorize doesn't change Coder widgets. Set the category on the widget.
Visitors may see a placeholder on that block until they allow the matching category, or until they click to load it.
Check that it is working
Open your site in a private or incognito window (not while you're logged in to the admin) and confirm:
The cookie banner appears on the first visit.
After you make a choice, the banner disappears and stays gone when you visit another page.
The Privacy Policy page has a Cookie Settings link (skip this if Managed Privacy Policy is off and you haven't added a link yet).
Clicking that link opens a window with the category toggles.
Common Questions
When to contact support
You don't need support to turn Cookie Consent on. For Facebook, Google and GTM, use the table above. Email support@agentfire.com if:
The banner doesn't appear at all
The banner comes back on every page after a choice
Visitors can't change their cookie choice later
A map, video, calendar, listing search or form stopped working
The site looks visibly broken after you turned Cookie Consent on
Categorize fails, or the site looks broken after you saved what it suggested
Last updated



