Quick Start

Install the complete snippet in the correct order.

Content and code last checked 2026-10-06 by ConsentEase product documentation. This is a review of the written content and code, not a test on a live third-party platform.

Install the full dashboard snippet

For manual installation, open Installation for the correct website and copy its full embed code. The public website ID is not an API key.

Two blocks, two jobs

The first block immediately sets Google consent defaults and a denied default for Microsoft Advertising (UET). It must execute before Google Tag Manager and other Google tags. The second block asynchronously loads the ConsentEase banner and updates signals when a visitor chooses.

<!-- ConsentEase: paste this whole block as the FIRST element in <head>, above Google Tag Manager / gtag.js. Do not add it through a GTM Custom HTML tag. Keep the data-cfasync, data-no-optimize, data-no-defer and nowprocket attributes: they stop caching plugins from delaying the banner. -->
<script data-cfasync="false" data-no-optimize="1" data-no-defer="1" nowprocket>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
  'ad_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied',
  'analytics_storage': 'denied',
  'functionality_storage': 'denied',
  'personalization_storage': 'denied',
  'security_storage': 'granted',
  'wait_for_update': 500
});
gtag('set', 'ads_data_redaction', true);
gtag('set', 'url_passthrough', true);
window.uetq = window.uetq || [];
window.uetq.push('consent', 'default', {'ad_storage': 'denied'});
</script>
<!-- ConsentEase: consent banner (keep it directly below the block above) -->
<script data-cfasync="false" data-no-optimize="1" data-no-defer="1" nowprocket src="https://consentease.io/api/consent/YOUR_PUBLIC_ID/script.js" async></script>

Replace YOUR_PUBLIC_ID with the selected website's public ID, or copy the generated code from the dashboard. The script URL carries no version: banner changes reach visitors without a new snippet. Older snippets with a version value (?v=...) keep working unchanged.

Placement

Paste the complete snippet as the first element in the page head, above Google Tag Manager and other tracking tags. Simply putting it immediately before the closing head does not guarantee execution order. Disable script-delay/reordering optimisations for consent initialization unless you have verified their behaviour.

Do not add the snippet through a GTM Custom HTML tag: by then Tag Manager has already started, so Google tags can run before the defaults. When the banner script notices that Google Tag Manager or gtag.js started first, it logs a console warning and the Installation page shows which pages were reported.

First verification

Use the installation checklist in separate fresh contexts for no choice, accept, reject and custom preferences. A visible banner is only a UI check. Inspect consent values, tag behaviour and the network as well.

Returning visitors

The browser remembers a choice for the banner's Re-consent period (default 365 days, configurable 30–730 days), subject to browser storage availability. This is not a consent-log deletion schedule.

Defaults communicate consent; they do not universally block every third-party script or guarantee no network traffic under Advanced Consent Mode.

Related articles

Still need help?

Contact the ConsentEase team and include the website and steps you tried.