Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

GTM Datalayer Metatag

No security coverage Under active development

Part of the GTM ecosystem · 5 projects

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.

Drupal 10–11

Ask your assistant about GTM Datalayer Metatag

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

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