Security · Ireland · Decision guide

Can I use Google Analytics or Google Tag Manager before consent?

A tag manager is a delivery system for scripts, not a consent exemption. Adding a tracking container to a website does not make analytics lawful by itself. Decide what data the tags collect, when they fire and how consent is recorded.

The answer

The DPC says consent is required for analytics cookies. Do not fire Google Analytics or other non-essential tracking before the visitor has given valid consent where required. A tag manager should be configured to respect the consent state and prevent optional tags from loading early. Consent must precede analytics tags.

What the Irish evidence shows

There is no reliable official statistic that answers this decision for every small business. The guidance on this page is based on the named Irish regulator or public body, with survey evidence used only as context where relevant. Check the source links for the rule that applies to your circumstances.

How to approach the decision

The user-supplied Google snippet loads the GTM JavaScript library and initialises a `gtag` data layer, but it does not create an Analytics property configuration or a consent mechanism. The container still needs published tags and triggers. Use a consent-management platform and test the actual requests made before and after consent. Consider Consent Mode only as part of a correctly implemented consent strategy; it is not a substitute for obtaining consent.

What to compare before deciding

FactorWhat to checkWhy it matters
Tag inventoryWhich tags are in the GTM container?A container can load many kinds of scripts
Consent stateDoes each tag wait for the required consent?Premature tracking can breach the rules
Measurement setupAre GA4 IDs, events and domains configured?The loader alone does not provide usable reports

Rules and points to check

A practical example

Illustrative example

A visitor rejects analytics. The site should not then send analytics events simply because the GTM container loaded. The business should test network requests and tag firing under the rejected state.

What to do next

  1. Inventory all tags, triggers and variables.
  2. Choose and configure a consent-management solution.
  3. Set consent defaults before optional tags can fire.
  4. Test accept, reject and withdrawal using Tag Assistant and browser requests.

Sources used

The sources below were checked on 2 December 2026. They support the legal requirements, public guidance and evidence used in this guide. Where rules depend on the facts or a scheme may change, check the linked authority before acting.

Publisher and sourceWhat it supportsDate checked
Data Protection Commission · Do I need consent for analytics cookies?The DPC says analytics cookies require consent.2 December 2026
Data Protection Commission · Guidance on Cookies and Other Tracking TechnologiesThe DPC says consent is normally required for cookies and similar tracking technologies unless a narrow exemption applies.2 December 2026
Google · Install a web container in Google Tag ManagerGoogle documents the current manual GTM installation: paste the first code block high in the HTML head, test the site, and then use Tag Manager to set up and manage tags.2 December 2026
Google · Tag Manager consent mode supportGoogle documents consent initialization, consent settings and tag behaviour; consent initialization is designed to set or update consent before other triggers fire.2 December 2026

This guide gives general information for businesses operating in Ireland. It is not legal, tax, accounting, employment or professional advice. The correct treatment depends on the business, contract and facts. Check the linked authority and obtain qualified advice before taking action where the amount or risk is material.