Skip to content

EARN UP TO 50% COMMISSION WITH OUR RESELLER ACCOUNTS + REGULAR PASSIVE INCOME SIGN UP TODAY

Install CookieScan

Choose how to install CookieScan

Compare the two ways to put CookieScan on your website, a script tag or Google Tag Manager, and pick the one that fits how your tags load.

Updated 3 min read

Applies to:
  • Cookie banner
  • Tag Manager & Consent Mode

https://cookiescan.com/help/choose-how-to-install/ Β· Updated 12 October 2026

On this page

Overview

You can install CookieScan with a script tag in your website's code, or with the CookieScan template in Google Tag Manager. Both show the same cookie banner and record the same consents. They differ in what holds back your other tags until a visitor makes a choice. Both methods work on every plan.

MethodUse it whenWhat holds tags back until consentAuto-block cookies
Script tagSome or all of your tags are in your website's codeAuto-blocking, plus Google Consent Mode for Google tagsOn
Google Tag ManagerEvery tag on your website loads through Tag ManagerConsent Mode and Tag Manager's consent settingsOff

The Install Code window in the Portal has a tab for each method: Manual Install for the script tag and Google Tag Manager Install for the template.

Use a script tag

Use a script tag if you are not sure which method to pick. It works however your other tags load, because Auto-blocking runs in the browser before them.

You paste one line of code into the <head> of every page, above all other scripts. With Auto-block cookies turned on, CookieScan holds back scripts and cookies in the categories a visitor hasn't accepted. Auto-blocking can only stop what loads after the CookieScan script, so the script must come first.

If you also use Tag Manager, keep its code on the page below the CookieScan script. Keep Use Google Consent Mode turned on, so Google tags in Tag Manager follow each visitor's choice as well.

To set it up, see Install with a script tag.

Use Google Tag Manager

Use Tag Manager if every tag on your website loads through it, including Google Analytics and any ad pixels. You add the CookieScan template to your container. It sets the Google Consent Mode default before any other tag fires, then loads your cookie banner.

With this method you turn off Auto-block cookies, and Tag Manager decides which tags fire:

  • Google tags read Consent Mode and adjust themselves.
  • Tags that don't read Consent Mode need Tag Manager's consent settings, or CookieScan's consent events on Premium and Enterprise plans.

A tag written straight into your website's code runs before Tag Manager loads CookieScan, so this method can't hold it back. Move that tag into Tag Manager, or use a script tag instead.

To set it up, see Install with Google Tag Manager.

Website builders

On a website builder, you add the script tag through the builder's own settings. Follow the guide for yours:

Was this article helpful?

Thanks for your feedback.

Please don't include personal details. We can't reply here.

Thanks for your feedback.

Please don't include personal details. We can't reply here.

Thanks, your comment has been sent.

Sorry, we couldn't record your feedback. Please try again later.

Still stuck?

Our support team can help with anything these guides don't cover. Tell us your CookieScan ID and the page address so we can look straight away.

Back to Install CookieScan