Skip to content

Install Cookifi

Cookifi is a comprehensive consent management platform that helps you manage website visitors’ consent. It provides tools to help you ensure consent-based tracking and compliance with local regulations.

This guide will walk you through different options of installing Cookifi on your website.

If you’ve already installed Cookifi using the Getting started guide, you can skip this detailed guide and move directly to Configuring your property.

To create a new Cookifi property, click the Add button in your Cookifi admin panel.

Cookifi - add property

This will open the following popup:

Cookifi - add property popup

Enter the following details:

  • A name for your new property.
  • Your domain.
  • (Optional) The URL of your sitemap.

Click the Create button. Your new property will now appear in the Properties list.

Click on the property you just created to open its settings:

Cookifi - general settings

There are two ways to install your Cookifi property on your website:

Direct installation

HOW? By inserting the Installation script directly into your website’s codebase.

The script doesn’t get affected by ad blockers, allowing to load the cookie banner safely for all visitors. This is the recommended way.

Via GTM

HOW? By inserting the Installation script via Google Tag Manager.

Using GTM allows you to implement Cookifi without involving developers, but the cookie banner may not load for visitors using ad blockers, potentially causing compliance issues.

Choose the option that works for you.

Within the General settings, look for the Installation script section.

Cookifi - installation script section

Notice the toggle bar above the script:

Cookifi - installation script bar

The first icon represents Google Consent Mode’s Default command:

Cookifi - GCM Default command button

If you want Cookifi to handle the Default command, click that icon:

Cookifi - GCM Default script

When enabled, the Installation script will include the Default command with your property’s default configuration values. You can modify these values in the Regions settings. We will go through these in the following guide.

When enabled, you can also configure the URL Passthrough and Ads Data Redaction parameters:

Cookifi - GCM Default script

If you don’t know what these mean, you can learn about them in Google Consent Mode.

Once satisfied with the code, copy it:

Cookifi - copy Installation script with the Default command

Open your website’s admin panel or code editor, and paste the Installation script as high as possible within the <head> section. Ensure this code applies to all pages of your website.

Save the changes and visit your website. You should now see the Cookifi cookie banner displayed.

Voilà - you have successfully integrated Cookifi with your website and can skip to the next guide.

Some website platforms (e.g., Go High Level) may strip off the data- attribute from the script, preventing the banner from loading.

If this happens, return to the Installation script section and toggle to Query string mode:

Cookifi Installation script Query String

Copy the modified code and replace the old one with it.

Open the General settings of your property, and look for the GTM Installation script:

Cookifi Installation script section - GTM

Copy the provided code:

Cookifi Installation script section - GTM copy

Open your Google Tag Manager container, and create a new Custom HTML tag:

Cookifi Installation script section - GTM custom HTML tag

Name the tag appropriately, e.g., cHTML - Cookifi, and paste the GTM Installation script into the HTML section:

Cookifi - GTM Installation - Cookifi tag

For the trigger, select the Consent Initialization - All Pages:

Cookifi - GTM Installation - Cookifi trigger

Click Save and Preview your changes:

Cookifi - GTM Installation - Cookifi preview

If you can see the Cookifi cookie banner displayed on your website, you can proceed to Publishing your GTM container:

Cookifi - GTM Installation - Cookifi publish

Voilà - you have successfully installed Cookifi with your website.