Tracking · consent

Does Google Analytics Load Before the Cookie Banner? How to Check and Fix It

A cookie banner alone is not enough – tracking scripts must really load only after “Accept”. On many sites they don't, because the script is also hard-coded in the theme.

Measure first, then fix. The free check shows in seconds what your site sends to Google, Meta and co. before any consent. The Fix Kit (€19) shows the fix for every finding – local Google Fonts, click-to-load for YouTube and Maps, tracking after consent, security headers.

Check your website for freeGet the Fix KitNetwork report (€39)

The principle

Most consent tools recognise scripts with type="text/plain" plus a category and load them only after consent.

<script type="text/plain" data-cookieconsent="statistics" async
        src="https://www.googletagmanager.com/gtag/js?id=G-XXXX"></script>

Per tool

FAQ

How do I check whether tracking loads before consent?

Open the site in a private window, open developer tools → Network, don't click the banner and filter for google-analytics, googletagmanager, facebook, hotjar or clarity. The free check also shows tracking scripts embedded directly in the HTML.

What is the most common mistake?

Tracking is included twice: once correctly via the consent tool and once directly in the theme or a plugin. The second one loads immediately.

Measure first, then fix. The free check shows in seconds what your site sends to Google, Meta and co. before any consent. The Fix Kit (€19) shows the fix for every finding – local Google Fonts, click-to-load for YouTube and Maps, tracking after consent, security headers.

Check your website for freeGet the Fix KitNetwork report (€39)
GDPR Website Fix Kit · €19Buy now