🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
DataLayer for GTM and Matomo icon
Activement maintenu Testé avec WP 7.1

DataLayer for GTM and Matomo

Add contextual information to dataLayer for GTM and MTM

Installations actives80+10+ niveaux
Téléchargements · 30D368▲ +17.2% vs prev. 30d
Évaluation—0 avis
Score de santé68/100Bon
Téléchargements de tous les temps3.2KDepuis décembre 2024
Support résolu—Aucun fil de discussion récent
A besoin deWP 6.0PHP 7.0+
Téléchargements · 7j79▼ -56.8% week over week
Notre verdict

Choix solide

DataLayer for GTM and Matomo is a solid plugin choice in 2026, with a few things worth checking first. It runs on 80+ sites and was last updated 2 weeks ago, and scores 68/100 on our health check.

  • Développé activement — Dernière mise à jour il y a 2 semaines
  • Testé avec le dernier WordPress (7.1)
  • Petite base d'utilisateurs (80+ installations actives)
  • Très peu de critiques jusqu'à présent

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

193857Sep 2Oct 16Nov 30
Hier12
Moyenne quotidienne (1 ans)6
Jour de pointe777 octobre 2026
12 Derniers mois2K

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where DataLayer for GTM and Matomo stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
analytique >100 9,289 Meilleurs plugins d'analyse →
datalayer #4 236 Best datalayer plugins →
google tag manager >100 2,215 Best google tag manager plugins →
gtm #21 418 Best gtm plugins →
matomo #27 165 Best matomo plugins →

Adoption de version

Part de sites actifs par version.

  • 1.0100.0%

About DataLayer for GTM and Matomo

À partir du Lisezmoi officiel · v1.0.7

Description

Elevate your website analytics with the DataLayer plugin!
This robust plugin creates a fully populated and standardized dataLayer object, ensuring seamless integration with both Google Tag Manager and Matomo Tag Manager.

  • Instant Setup: Automatically generates and populates a dataLayer object with essential website and user interaction data.
  • Universal Compatibility: Works flawlessly with Google Tag Manager and Matomo Tag Manager, making it easier to manage your tagging needs.
  • Customizable Data: Easily add or modify data points to fit your specific tracking requirements.
  • Performance Optimized: Lightweight and optimized for speed to ensure your site remains fast and responsive.

Get a quick look at all the generated structures!

Archive page `dataLayer` structure

Easy access to your archive data with a standard event name and subject.

{
    "event": "view_archive_date", //_date may be replaces with _tax value
    "page": {
        "type": "archive",
        "title": "january 2025 - Example",
        "url": "https://example.com/2025/01",
        "path": "2025/01",
        "locale": "en_US",
        "archive_type": "date",
        "taxonomy": false,
        "post_type": false,
        "date": {
            "year": 2025,
            "month": 1,
            "day": null
        }
    }
}

Author page `dataLayer` structure

Easy access to all author details on his archive page.

{
    "event": "view_author",
    "page": {
        "id": 1,
        "nickname": "openmost",
        "display_name": "openmost",
        "first_name": "Ronan",
        "last_name": "HELLO",
        "description": "The creator of this super plugin",
        "type": "author",
        "url": "https://example.com/author/openmost",
        "path": "author/openmost",
        "title": "Author: openmost"
    }
}

Error page `dataLayer` structure

This dataLayer structure allows you to easily track the 404 error and detect the referring page that led to this error.
What a great trick yeah?

{
    "event": "view_error_404",
    "page": {
        "type": "error",
        "title": "Page not found - Website",
        "url": "https://example.com/url-that-encountered-a-404-error",
        "path": "/url-that-encountered-a-404-error",
        "locale": "en_US",
        "error_type": "404",
        "http_status_code": 404
    }
}

Search results page `dataLayer` structure

The search key in this object allows you to get the search term and total results to detect invalid searches.
Very useful for Matomo Tag Manager, and nice hack for Google Tag Manager.

{
    "event": "view_search_results",
    "page": {
        "type": "search",
        "url": "https://example.com",
        "path": "",
        "title": "You searched for Demo - Example",
        "locale": "en_US"
    },
    "search": {
        "search": "Demo",
        "search_cat": "",
        "search_count": 3,
        "query": "Demo",
        "found_posts": 3,
        "post_count": 3
    }
}

Home, Post Type `dataLayer` structure (blog posts, custom post type single page)

The following structure is generated for a single post page, but it automatically adapts to your custom post type, page, etc.

{
    "event": "view_single_post",
    "page": {
        "type": "post",
        "id": 1,
        "url": "https://example.com/blog/super-article-path",
        "path": "/blog/super-article-path",
        "title": "Super article title | Example",
        "locale": "en_US",
        "is_home": false,
        "is_front_page": false,
        "post_name": "super-article-path",
        "post_title": "Super article title",
        "post_excerpt": "",
        "post_status": "publish",
        "post_date": "2024-08-17 13:30:00",
        "post_date_gmt": "2024-08-17 13:30:00",
        "post_modified": "2024-08-17 13:30:00",
        "post_modified_gmt": "2024-08-17 13:30:00",
        "post_type_name": "post",
        "post_type_label": "Posts",
        "post_type": {
            "name": "post",
            "label": "Posts",
            "label_singular": "Post",
            "label_plural": "Posts",
            "description": "The super post type description"
        },
        "guid": "https://example.com/?p=1",
        "post_mime_type": false,
        "comment_status": "open",
        "comment_count": "0",
        "author": {
            "id": 1,
            "nickname": "openmost",
            "display_name": "openmost",
            "first_name": "Ronan",
            "last_name": "HELLO",
            "description": "The creator of this super plugin"
        },
        "taxonomies": {
            "category": {
                "name": "category",
                "label": "Categories",
                "description": "",
                "object_type": [
                    "post"
                ],
                "terms": {
                    "Uncategorized": {
                        "term_id": 1,
                        "slug": "uncategorized",
                        "name": "Uncategorized",
                        "term_group": 0,
                        "term_taxonomy_id": 1,
                        "taxonomy": "category",
                        "description": "",
                        "parent": 0,
                        "count": 1,
                        "filter": "raw"
                    }
                },
                "primary_term": [] //Filled only with YoastSEO plugin
            }
        },
        "category": [
            "Uncategorized"
        ],
        "page_template": ""
    }
}

Term and taxonomy page `dataLayer` structure

{
    "event": "view_archive_category", // this event name changed for every taxonomy
    "page": {
        "type": "archive",
        "title": "Uncategorized archives - Example",
        "url": "https://example.com/blog/category/uncategorized",
        "path": "blog/category/uncategorized",
        "locale": "en_US",
        "archive_type": "taxonomy",
        "taxonomy": "category",
        "post_type": "category",
        "date": {
            "year": null,
            "month": null,
            "day": null
        }
    }
}

Pagination `dataLayer` structure

The pagination object structure is automatically added to all pages that have pagination.

Easy access to your pagination data, detect if users are using your pagination as much as you want.

{
    pagination: {
        "posts_per_page": 10,
        "post_count": 1,
        "paged": true,
        "page_number": 2,
        "max_num_pages": 5
    }
}

Authenticated user `dataLayer` structure

The user object is automatically added to all page when user is logged in.

User hashed data with SHA256 is very useful for GDPR consent with Google Ads services and user provided data.

{
    user: {
        "id": 1,
        "user_login": "openmost",
        "user_nicename": "Openmost",
        "user_email": "jane@example.com",
        "user_registered": "2024-01-01 12:00:00",
        "display_name": "openmost",
        "roles": [
            "administrator"
        ],
        "sha256_id": "6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b",
        "sha256_user_login": "b2754b994c2fb636d1943ac0170f4ea192a891fb0f09cfdd100a9ffa983f053d",
        "sha256_user_email": "679d031c25e557ee84ca86ecaf333ccd8d3d1a3900ee728da83d79a819daf535"
    }
}

Plugin : Contact Form 7 `dataLayer` structure

This plugin automatically detects the use of WP Contact Form 7.
No configuration needed.

Form submitted

{
    "event": "wpcf7_submit",
    "wpcf7_form_id": 145,
    "wpcf7_form_detail": {} // See wpcf7_form_details below
}

Form with invalid fields

{
    "event": "wpcf7_invalid",
    "wpcf7_form_id": 145,
    "wpcf7_form_detail": {} // See wpcf7_form_details below
}

Form spamming detected

{
    "event": "wpcf7_spam",
    "wpcf7_form_id": 145,
    "wpcf7_form_detail": {} // See wpcf7_form_details below
}

Email sent successfully

{
    "event": "wpcf7_mail_sent",
    "wpcf7_form_id": 145,
    "wpcf7_form_detail": {} // See wpcf7_form_details below
}

Failed to send mail

{
    "event": "wpcf7_mail_failed",
    "wpcf7_form_id": 145,
    "wpcf7_form_detail": {} // See wpcf7_form_details below
}

As each event handles wpcf7_form_details, here is an example of the object values when the form is submitted with invalid fields.

"wpcf7_form_detail": {
        "contactFormId": 145,
        "pluginVersion": "6.0.3",
        "contactFormLocale": "en_US",
        "unitTag": "wpcf7-xxxxxx",
        "containerPostId": 0,
        "status": "validation_failed",
        "inputs": [
            {
                "name": "your-message",
                "value": ""
            },
            {
                "name": "your-name",
                "value": ""
            },
            // All other inputs
        ],
        "formData": {},
        "apiResponse": {
            "contact_form_id": 145,
            "status": "validation_failed",
            "message": "One or more fields contain an error. Please check and try again.",
            "invalid_fields": [
                {
                    "field": "your-name",
                    "message": "Please complete this field..",
                    "idref": "last_name",
                    "error_id": "wpcf7-f145-o1-ve-your-name"
                },
                {
                    "field": "your-first-name",
                    "message": "Please complete this field.",
                    "idref": "first_name",
                    "error_id": "wpcf7-f145-o1-ve-your-first-name"
                },
                // All other invalid fields
            ],
            "posted_data_hash": "",
            "into": "#wpcf7-f145-o1"
        }
    }

Plugin : WP Forms `dataLayer` structure

{
    event: 'wp_forms_submit',
    wp_forms_form_detail: {} // the HTML tag found in DOM
}

Installation

To start using the dataLayer plugin, you need to install it from the marketplace or manually.
Then activate the plugin in the WordPress administration.
You don’t need to configure anything special for standard use.
Once the plugin is activated, you will need to understand the different structures of the generated dataLayer object.

In your favorite Tag Manager:

  • To trigger a tag at a specific moment, you will need to create a trigger based on the value of the event key of the desired page.
  • To read values from the dataLayer object and report them to your audience analysis tools, you will need to create custom variables of the “data layer” type and enter the full path.

Example of configuring a variable:
for a following datalayer object:

{
    "event": "view_single_post",
    "page": {
        "type": "post",
        "id": 1,
        "url": "https://example.com/blog/super-article-path",
        "path": "/blog/super-article-path",
        "title": "Super article title | Example",
        "post_type": {
            "name": "post",
            "label": "Posts",
            "label_singular": "Post",
            "label_plural": "Posts",
            "description": "The super post type description"
        }
    }
}

To collect the post type label, you will need to enter the value page.post_type.label in your custom variable.
This variable should be triggered with a custom trigger based on the custom event view_single_post.

Job done !

Journal de modifications

1.0.7

Release date: 2026-11-18

Plugin URI and Author URI now point to openmost.com, the plugin page is openmost.com/matomo/extensions/datalayer
The example user payload uses jane@example.com
Tested up to WordPress 7.1.5

1.0.6

Release date: 2026-11-18

Fix: wpcf7_mail_sent now pushes wpcf7_form_id and wpcf7_form_detail, like the other Contact Form 7 events
Tested up to WordPress 7.1.4
Requires PHP aligned to 7.0, the actual minimum of the code

1.0.5

Release data: 2026-10-06

Fix: Issue in realease header

1.0.2

Release data: 2025-01-17

Fix archive date error

1.0.1

Release data: 2025-01-17

Create documentation

1.0.0

Release date: 2024-11-18

Plugin first release, enjoy all the features !

Journal des modifications complet sur WordPress.org →

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best DataLayer for GTM and Matomo alternatives

Tous les plugins d'analyse →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Kit de site par Google – Analytics, Search Console, AdSense, Speed Kit de site par Google Site Kit est une solution unique pour les utilisateurs de WordPress à utiliser tout ce que Google a à offrir… par Google 5M+ ★★★★★★★★★★ 4.2 (1K) il y a 12 heures 92
2 MonsterInsights – Tableau de bord Google Analytics pour WordPress (Statistiques du site Web simplifiées) MonsterInsights Le meilleur plugin d'analyse Google gratuit pour WordPress. Découvrez comment les visiteurs trouvent et utilisent votre… par chriscct7 2M+ ★★★★★★★★★★ 4.5 (3.2K) Il y a 3 mois 93
3 WP Statistics – Simple, respect de la vie privée Google Alternative d'analyse Statistiques WP Sans cookies, respectueux de la vie privée WordPress Analytics. Graphiques clairs et données de visiteurs conservés… Par soft 500K+ ★★★★★★★★★★ 4.1 (763) il y a 1 heure 90
4 GA Google Analytics – Connecter Google Analytics à WordPress GA Google Analytics – Connecter Google Analytics à WordPress Ajoute Google le code de suivi analytique à votre site WordPress. Prend en charge de nombreuses fonctionnalités de suivi. de Jeff Starr 400K+ ★★★★★★★★★★ 4.9 (159) Il y a 2 jours 97
5 ExactMetrics – Google Tableau de bord Analytics pour WordPress (Plugin Stats de sites Web) ExactMerics Connecte Google Analytics avec votre site WordPress. Affiche les statistiques pour vous aider à comprendre… de Syed Balkhi 200K+ ★★★★★★★★★★ 2.5 (1.5K) Il y a 3 mois 80
6 Tête, pied de page et injections de poste Tête, pied de page et injections de poste Le plugin Head and Footer vous permet d'ajouter du code HTML aux sections Head et Footer de votre… Par Stefano Lissa 200K+ ★★★★★★★★★★ 4.9 (735) il y a 8 mois 53
7 Statistiques de rafale – Simple WordPress Analytics (Google Alternative Analytics) Burst Statistics Analyse simple et légère WordPress avec un suivi des visiteurs respectueux de la vie privée. sans biscuit… par Burst Statistics B.V. 200K+ ★★★★★★★★★★ 4.9 (192) 3 semaines plus tôt 94
8 Marketing tout-en-un HubSpot – formulaires, popups, chat en direct Marketing tout-en-un HubSpot – formulaires, popups, chat en direct Le plugin CRM, ventes et marketing WordPress pour mieux développer votre entreprise. Capturer et… par HubSpot 200K+ ★★★★★★★★★★ 4.3 (207) il y a 5 jours 81
9 UserFeedBack – Créez un formulaire de commentaires interactifs, des enquêtes d'utilisateurs et des sondages en quelques secondes Feedback utilisateur Plugin Ultimate User Feedback pour poser des questions, sondages, sondages, depuis votre site Web en quelques secondes de Syed Balkhi 200K+ ★★★★★★★★★★ 4.8 (311) Il y a 3 mois 82
10 Poster des vues Compteur Poster des vues Compteur Comptez et affichez les vues des publications, suivez les visites à l'échelle du site et voyez quel contenu fonctionne - à l'intérieur… par factory 100K+ ★★★★★★★★★★ 4.9 (1.2K) il y a 6 jours 96

FAQ

DataLayer for GTM and Matomo: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is DataLayer for GTM and Matomo free?

Yes. DataLayer for GTM and Matomo is free to download and use from the official WordPress.org plugin directory.

Is DataLayer for GTM and Matomo safe to use in 2026?

DataLayer for GTM and Matomo is a solid plugin choice in 2026, with a few things worth checking first. It runs on 80+ sites and was last updated 2 weeks ago, and scores 68/100 on our health check.

How many websites use DataLayer for GTM and Matomo?

DataLayer for GTM and Matomo is active on 80+ WordPress websites and has been downloaded 3,217 times since it launched in December 2024. It was downloaded 368 times in the last 30 days.

Does DataLayer for GTM and Matomo work with WordPress 7.1?

Yes. The developer has tested DataLayer for GTM and Matomo up to WordPress 7.1.5, the latest release. It requires WordPress 6.0 or newer.

What PHP version does DataLayer for GTM and Matomo need?

DataLayer for GTM and Matomo requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was DataLayer for GTM and Matomo last updated?

The latest version, 1.0.7, was released on November 18, 2026 (2 weeks ago).

Who makes DataLayer for GTM and Matomo?

DataLayer for GTM and Matomo is developed and maintained by Openmost.

What are the best alternatives to DataLayer for GTM and Matomo?

The most popular alternatives to DataLayer for GTM and Matomo are Site Kit by Google (5M+ installs), MonsterInsights (2M+ installs) and WP Statistics (500K+ installs).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir