Cookie Consent Hub Getting StartedGoogle Tag Manager Integration

Google Tag Manager Integration

Connect Cookie Consent Hub with Google Tag Manager and install the FlowAppz GTM template.

First, go to the Script menu.

Go to Script menu

Then, select Google Tag Manager to open the Google Tag Manager settings.

Select Google Tag Manager

Then, enter your Google Tag Manager ID and click Save Changes.

Enter GTM ID

Then, go to your Google Tag Manager account and navigate to the Templates tab.

Navigate to Templates

Then, click Search Gallery under Tag Templates.

Search Gallery

Then, search for FlowAppz in the search bar and select FlowAppz Cookie Consent GTM Template from the results.

Search FlowAppz Template

Then, click Add to Workspace.

Add to Workspace

Then, click Add to include it in your Google Tag Manager workspace.

Confirm Add Template

Now, you should see the FlowAppz Cookie Consent GTM Template in the tag templates list.

Template added list

Then, go to the Tags tab and click New.

Create New Tag

Then, name the new tag Consent Mode Init.

Name Tag Consent Mode Init

Then, click Tag Configuration.

Tag Configuration

Then, choose the FlowAppz Cookie Consent GTM Template.

Select FlowAppz Template

Then, click Triggering.

Click Triggering

Then, select Consent Initialization - All Pages.

Select Consent Initialization

Then, click Save.

Save Tag

Then, go to the Triggers tab and click New.

Create New Trigger

Name the first trigger Essential Cookies.

Name Trigger Essential Cookies

Then, click Trigger Configuration.

Trigger Configuration

Then, select Custom Event.

Select Custom Event

Then, set the Event Name to essential-activated.

Set Event Name essential-activated

Then, select Some Custom Events.

Select Some Custom Events

Then, select Event, set the condition to equals, and enter essential-activated, as shown in the image.

Configure Trigger Condition

Then, click Save to save the trigger configuration.

Save Trigger

Then, you will see Essential Cookies added to the triggers list.

Triggers List

Similarly, create a trigger for Marketing Cookies by clicking New again.

Create Marketing Trigger

Then, name the trigger Marketing Cookies and click Trigger Configuration.

Name Marketing Trigger

Then, select Custom Event.

Select Custom Event for Marketing

Then, set the Event Name to marketing-activated, select Some Custom Events, configure the condition as Event equals marketing-activated, and click Save.

Configure Marketing Trigger

Then, name the new trigger Personalization Cookies and click Trigger Configuration.

Name Personalization Trigger

Then, select Custom Event.

Select Custom Event for Personalization

Then, set the Event Name to personalization-activated, select Some Custom Events, configure the condition as Event equals personalization-activated, and click Save.

Configure Personalization Trigger

Then, create a new trigger named Analytics Cookies and click Trigger Configuration.

Name Analytics Trigger

Then, select Custom Event.

Select Custom Event for Analytics

Then, set the Event Name to analytics-activated, select Some Custom Events, configure the condition as Event equals analytics-activated, and click Save.

Configure Analytics Trigger

Then, you will see four triggers—Analytics Cookies, Essential Cookies, Marketing Cookies, and Personalization Cookies—added to the triggers list.

Triggers List Final

Next, attach the Analytics Cookies trigger to your Google Analytics tag. Go to the Tags tab and open your Google Analytics tag.

Attach Trigger to GA

Then, remove All Pages from Triggering.

Remove All Pages Trigger

Then, click Triggering again.

Click Triggering GA

Then, select Analytics Cookies.

Select Analytics Cookies

Then, click Save. The Google Analytics tag will fire only after users consent to Analytics.

Save GA Tag