Install Legal Monster with GTM
This guide will show you how you can install our cookie widget using Google Tag Manager. This way, you don't need any developer experience or change the source code of your site.

Legal Monster Cookie Pop-up

You need your widget's install code to follow this guide. To find this code snippet, navigate to "Widgets" and click on "Install" for the widget, you wish to use.
Press the install button
This is the code you'll need in this guide. We will refer to it as your "Legal monster code snippet".

Before you start:

Before following these steps, please be sure that you have:

Step 1: Create a tag for the cookie widget

First you must create a tag for your cookie widget. Go to your Google Tag Manager dashboard and select "Add new tag". Choose Custom HTML for your tag type:
You must select "Custom HTML" as your tag type.
Now you must paste your cookie code snippet in your tag:
Lastly, you must setup a trigger for the Legalmonster tag.

Step 2: Create trigger

The trigger for Legal Monster must be of the type "Page view - DOM Ready", which means that the widget will load after all other content on your site.
Press "Choose a trigger" and create a new trigger with the type "DOM ready":
When you press save, you'll see that this trigger is now associated with your Legal monster tag:
This is a correct setup for installing Legal Monster with Google Tag Manager


Congratulations on completing your first step towards collecting compliant cookie consent. Pat your self on the back and know that our privacy mascot Sven is proud of you.
Last modified 7mo ago