> For the complete documentation index, see [llms.txt](https://docs.cookie3.com/cookie3-analytics/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cookie3.com/cookie3-analytics/setup-your-site-or-app/installation-guide/integration-with-google-tag-manager-gtm.md).

# Integration with Google Tag Manager (GTM)

{% hint style="info" %}
Cookie3 Analytics has a dedicated configuration for Google Tag Manager and provides a GTM-specific snippet during the site setup process.
{% endhint %}

## **Create a New Tag**

In your Google Tag Manager account, begin by adding a new tag.

* Click on “**Add New Tag**.”

### **Configure the Tag**

Under the tag configuration, choose “**Custom HTML**” as the tag type.

### **Insert the Cookie3 Analytics Snippet**

In the **HTML** field within the “Custom HTML” section, paste your Cookie3 Analytics GTM tracking snippet.

* If you’ve already added your site, you can retrieve this snippet in the “**Manage Websites**” page, which you can access from the application’s sidebar navigation

### **Set a Trigger for the Tag**

After adding the snippet, you need to create a trigger to fire the tag.

* Choose “**All Pages**” and filter by “**Page View**” to ensure the tag counts visits across all your pages.

{% hint style="warning" %}
Be cautious with advanced settings such as tag firing priority, tag sequencing, and consent checks, as these can affect how and when the Cookie3 Analytics script loads.
{% endhint %}

### **Name and Save the Tag**

* Give your tag a descriptive name for easy identification.
* Click on the “**Save**” button.

### **Submit and Publish Your Changes**

* After saving the tag, click on the “**Submit**” button to submit the changes.
* Then, click on the “**Publish**” button to apply the changes to your website.

### **Verify the Integration**

Once published, visit your website to confirm that the Cookie3 Analytics script has been added.

* You can also verify the tracking in your Cookie3 Analytics account to ensure stats are being collected.
