PHPackages                             alekseyp/googletagmanager-plugin - 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. alekseyp/googletagmanager-plugin

ActiveOctober-plugin

alekseyp/googletagmanager-plugin
================================

Google Tag manager plugin for October CMS.

2264[1 issues](https://github.com/alekseyp/octobercms-googletagmanager/issues)PHP

Since Feb 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/alekseyp/octobercms-googletagmanager)[ Packagist](https://packagist.org/packages/alekseyp/googletagmanager-plugin)[ RSS](/packages/alekseyp-googletagmanager-plugin/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

octobercms-googletagmanager-plugin
==================================

[](#octobercms-googletagmanager-plugin)

Google Tag manager plugin for October CMS. Inspired by the \[Google Analytics Plugin\] (rainlab/googleanalytics-plugin) from RainLab.

You can use default code on all pages or you can specify unique tag for specific pages.

Instructions
------------

[](#instructions)

1. Install the plugin via the October CMS backend.
2. Add your site configuration details to the Google Tag Manager Plugin configuration page. (Under the 'Misc' section of the System Settings page in the Backend).
3. Add the Google Tag Manager Component to your master layout.
4. Add `{% component 'gtmCode' %}` to the `` of the default layout, preferably as close to the opening `` tag as possible, but below any dataLayer declarations.
5. Add `{% placeholder gtmNoscript %}` to the content of the default layout so that it appears immediately after the opening `` tag.
6. Save the file.

You can also add the component to the file manually and/or override `container_id` from your settings. For Example:

```
[gtmCode]
container_id = "GTM-XXXXXX"
==

	{{ this.page.title }}

	{% component 'gtmCode' %}
	{% styles %}

    {% placeholder gtmNoscript %}

		Header

        {% page %}

        {% partial "footer" %}

    {% framework extras %}
    {% scripts %}

```

License
-------

[](#license)

MIT

Author Information
------------------

[](#author-information)

Aleksey Potaneyko

Mediahub

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

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

---

Top Contributors

[![alekseyp](https://avatars.githubusercontent.com/u/1569335?v=4)](https://github.com/alekseyp "alekseyp (8 commits)")[![pikanji](https://avatars.githubusercontent.com/u/610221?v=4)](https://github.com/pikanji "pikanji (7 commits)")[![StefanLJ](https://avatars.githubusercontent.com/u/26223430?v=4)](https://github.com/StefanLJ "StefanLJ (1 commits)")

### Embed Badge

![Health badge](/badges/alekseyp-googletagmanager-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/alekseyp-googletagmanager-plugin/health.svg)](https://phpackages.com/packages/alekseyp-googletagmanager-plugin)
```

PHPackages © 2026

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