In the EU the rule is simple: tracking scripts may only load once the visitor agreed. That applies to the Meta pixel, analytics and every other tool that sets cookies or transfers data. Technically necessary functions such as your form are not affected.
Step by step
- Take stock.List which scripts your site loads: pixels, analytics, chat, videos, fonts from external providers. What you do not know about you cannot collect consent for.
- Pick a consent tool.Use a consent tool of your choice. It has to make Decline as easy as Accept and must document the decision.
- Add the script to the page.Insert the tool's code in the head of your page, before all other scripts. Only then can it control when the rest loads.
- Block tracking scripts.Mark pixels and analytics so they only load after consent. Most tools do this via an attribute on the script tag.
- Check videos and maps.External videos load data on page view already. Use a preview that only loads on click, the way this Help Center does.
- Add server-side tracking.If you run Meta or Google ads, add the conversion interface. It keeps working when browsers block cookies.
- Test and document.Open the page in a private window, decline, and check in the developer tools whether pixel requests go out. Record the result for your documentation.
Common problems
The banner appears but the pixel fires anyway. The script is not marked as blocked. Check the consent tool configuration and reload without cache.
Data is still missing after consent. Check whether consent is passed on to the ad platform. Without that signal the platform discards events.
The banner covers everything on mobile. Cut the text to two sentences and link the details. A long banner lowers the consent rate significantly.
What comes next
With consent and tracking in place you can measure campaigns through to revenue.