PHPackages                             la-haute-societe/craft-google-tag-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. la-haute-societe/craft-google-tag-manager

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

la-haute-societe/craft-google-tag-manager
=========================================

Configure the Google Tag Manager "Container ID" from the Craft CMS control panel

2.0.0(3y ago)219.5k↓33.3%1[1 issues](https://github.com/la-haute-societe/craft-google-tag-manager/issues)MITPHP

Since Jan 30Pushed 1y ago6 watchersCompare

[ Source](https://github.com/la-haute-societe/craft-google-tag-manager)[ Packagist](https://packagist.org/packages/la-haute-societe/craft-google-tag-manager)[ RSS](/packages/la-haute-societe-craft-google-tag-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (7)Used By (0)

Google Tag Manager plugin for Craft CMS
=======================================

[](#google-tag-manager-plugin-for-craft-cms)

This plugin allows you to configure the "ContainerID" from the control panel and inject the GTM tags into the template.

[![Screenshot](.readme/plugin-screenshot.png)](.readme/plugin-screenshot.png)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 4.0.0 or later. Version 1.x of this plugin supports Craft CMS 3.x.

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require la-haute-societe/craft-google-tag-manager

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Google Tag Manager.

Configuring Google Tag Manager
------------------------------

[](#configuring-google-tag-manager)

You can configure the containerID from the Craft Control Panel.

Using Google Tag Manager
------------------------

[](#using-google-tag-manager)

Copy the code below and paste it into your layout as high as possible in the `` section of the page:

```
{{ craft.googleTagManager.headSection() }}

```

You must also paste this code immediately after the opening tag ``:

```
{{ craft.googleTagManager.bodySection() }}

```

Brought to you by [![Logo La Haute Société](.readme/logo-lahautesociete.png)](https://www.lahautesociete.com)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~260 days

Recently: every ~325 days

Total

6

Last Release

1363d ago

Major Versions

1.1.0 → 2.0.02022-08-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8ee487ad8fd68ef71b606e38019a3cc3d1198c410c9d37443fd7c7ffa6ef22d?d=identicon)[juban](/maintainers/juban)

![](https://www.gravatar.com/avatar/9fd1947ef8f9b4e7b6f1782c87ade771ff646d15941f6e5347605bdf16fada71?d=identicon)[la-haute-societe](/maintainers/la-haute-societe)

---

Top Contributors

[![nstCactus](https://avatars.githubusercontent.com/u/353843?v=4)](https://github.com/nstCactus "nstCactus (5 commits)")[![mathieu-coingt](https://avatars.githubusercontent.com/u/45205302?v=4)](https://github.com/mathieu-coingt "mathieu-coingt (1 commits)")

---

Tags

cmscraftcraftcmscraftcms-plugingoogle-tag-managercmsCraftcraftcmscraft-pluginGoogle Tag Manager

### Embed Badge

![Health badge](/badges/la-haute-societe-craft-google-tag-manager/health.svg)

```
[![Health](https://phpackages.com/badges/la-haute-societe-craft-google-tag-manager/health.svg)](https://phpackages.com/packages/la-haute-societe-craft-google-tag-manager)
```

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[pennebaker/craft-architect

CraftCMS plugin to generate content models from JSON/YAML data.

72148.5k5](/packages/pennebaker-craft-architect)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
