Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Key auth 2.2.4 Minor update available for module key_auth (2.2.4). Release: SAML SSO - Service Provider 3.2.0 Minor update available for module miniorange_saml (3.2.0). Release: amazee.ai Private AI Provider 1.4.3 Minor update available for module ai_provider_amazeeio (1.4.3). Release: amazee.ai Private AI Provider 1.3.7 Minor update available for module ai_provider_amazeeio (1.3.7). Release: WebProfiler 11.2.3 Minor update available for module webprofiler (11.2.3). Release: Acquia DAM 1.1.18 Minor update available for module acquia_dam (1.1.18). Usage Milestone: Easy Breadcrumb Module easy_breadcrumb crossed 100,000 active installs. Release: Direct Upload Media Image 1.1.4 Minor update available for module dumi (1.1.4). Release: Bootstrap Cloud 7.1.1 Minor update available for theme bootstrap_cloud (7.1.1). Module Revived: Drupal driver for SQL Server and SQL Azure 5.0.2 Module sqlsrv updated after 9 months of inactivity (5.0.2).

GTM Datalayer Metatag

No security coverage Drupal 10–11

Part of the GTM ecosystem · 5 projects

View on drupal.org

This module integrates Google Tag Manager's dataLayer with Drupal's Metatag module. It enables you to define and output custom dataLayer variables for Google Tag Manager, similar to how the Schema Metatag module outputs structured data.

This module allows Google Tag Manager dataLayer objects to be displayed using Drupal's Metatag module. It follows the same architectural pattern as the Schema Metatag module, but outputs to the GTM dataLayer instead of JSON-LD structured data.

Dependencies

Features

How it works is add to a page (content type, taxonomy term, or similar) you want to use it with. The module by itself doesn't add any custom objects for use with a datalayer.

This module is meant to help those who use Metatag and Google Tag to set up custom variables for GTM's datalayer.

Post-Installation

Create a custom module that has a plugin to define your custom variables. If you use Schema Metatag module; then you have a good idea how to make this work.

Similar projects

Supporting this Module

We are looking into further help to improve and maintain this module. Please contact one of the maintainers.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2026
Latest release
4 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Sep 10, 2026