Title: GTM4Publishers &#8211; Smart content tracking for blogs, news sites and magazines
Author: antoniolite
Published: <strong>28 juillet 2025</strong>
Last modified: 28 juillet 2025

---

Recherche d’extensions

![](https://ps.w.org/gtm4publishers/assets/banner-772x250.png?rev=3335476)

Cette extension **n’a pas été testée avec plus de trois mises à jour majeures de
WordPress**. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes
de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

![](https://ps.w.org/gtm4publishers/assets/icon-256x256.png?rev=3335476)

# GTM4Publishers – Smart content tracking for blogs, news sites and magazines

 Par [antoniolite](https://profiles.wordpress.org/antoniolite/)

[Télécharger](https://downloads.wordpress.org/plugin/gtm4publishers.1.0.0.zip)

 * [Détails](https://fr.wordpress.org/plugins/gtm4publishers/#description)
 * [Avis](https://fr.wordpress.org/plugins/gtm4publishers/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/gtm4publishers/#installation)
 * [Développement](https://fr.wordpress.org/plugins/gtm4publishers/#developers)

 [Support](https://wordpress.org/support/plugin/gtm4publishers/)

## Description

Integrates Google Tag Manager into WordPress and generates an advanced dataLayer,
optimized for blogs, newspapers, magazines, and other digital media.

GTM4Publishers is a specialized plugin for digital publishers who need advanced 
and detailed content tracking. The plugin smartly integrates Google Tag Manager 
and automatically generates a rich dataLayer with specific information for each 
post.

**Main Features:**

 * Full Google Tag Manager management: Automatically inserts GTM code in the correct
   positions (head and body)
 * Advanced dataLayer: Automatically generates a detailed dataLayer with post-specific
   information
 * Pre-configured GTM container: Includes a ready-to-import JSON file with complete
   configuration
 * Dual event system: Distinguishes between « view » (page load) and « read » (real
   engagement)
 * Flexible configuration: Choose between inserting the full GTM code or just generating
   the dataLayer
 * Intuitive custom fields: Set access type and evergreen content directly from 
   the post editor
 * Configurable CSS selectors: Adapt the plugin to any theme using customizable 
   CSS selectors
 * Optimized for publishers: Includes specific metrics like reading time, multimedia,
   hierarchical categories, etc.
 * Internationalization: English (default), Spanish, and Russian translations included
 * Security: All user input is sanitized and escaped following WordPress best practices

### External Services

This plugin may connect to Google Tag Manager (GTM) services when the user chooses
to insert GTM code on their website.

**Google Tag Manager (Optional Integration):**

 * **What it is and what it’s used for:** Google Tag Manager is a tag management
   system that allows you to quickly and easily update measurement codes and related
   code fragments (collectively called « tags ») on your website or mobile app. 
   This plugin can optionally insert GTM code to enable advanced analytics and tracking
   capabilities.
 * **What data is sent and when:** When GTM integration is enabled, the plugin sends
   page view data and user interaction information to Google Tag Manager. This includes
   post metadata (categories, tags, author, publication date), content analysis (
   word count, reading time, multimedia content), and user behavior data (referrer,
   origin, engagement metrics). Data is sent when users visit individual post pages
   and when they interact with content (reading events).
 * **When it’s used:** GTM integration is **completely optional** and is only activated
   if the user explicitly enables the « Insert GTM Code » option in the plugin settings.
   By default, the plugin only generates a dataLayer without connecting to any external
   services.
 * **Service provider:** Google Tag Manager is provided by Google LLC.
 * **Terms of Service:** https://marketingplatform.google.com/about/analytics/terms/
 * **Privacy Policy:** https://policies.google.com/privacy

**Important Note:** The plugin is designed to work without any external services.
The GTM integration is an optional feature that users can choose to enable or disable.
When disabled, the plugin only generates a local dataLayer without sending any data
to external services.

### Credits

Developed by **Antonio Lite** — [https://www.antoniolite.com](https://www.antoniolite.com)

Telegram support group — [https://t.me/GTM4Publishers](https://t.me/GTM4Publishers)

### Donate link

[https://coff.ee/antoniolite](https://coff.ee/antoniolite)

## Captures d’écrans

[⌊General settings⌉⌊General settings⌉[

General settings

[⌊Separators configuration⌉⌊Separators configuration⌉[

Separators configuration

[⌊Content configuration⌉⌊Content configuration⌉[

Content configuration

[⌊CSS Selectors configuration⌉⌊CSS Selectors configuration⌉[

CSS Selectors configuration

[⌊dataLayer parameters configuration⌉⌊dataLayer parameters configuration⌉[

dataLayer parameters configuration

## Installation

 1. Upload the `gtm4publishers` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to ‘Settings’ > ‘GTM4Publishers’ to configure the plugin.

## FAQ

### Does this plugin work with any theme?

Yes, you can configure the CSS selectors to adapt the plugin to any theme.

### Is the plugin compatible with page builders?

Yes, it automatically detects posts created with Elementor, Divi, WP Bakery Page
Builder, Gutenberg, and others.

### Can I use only the dataLayer without inserting the GTM code?

Yes, you can choose to only generate the dataLayer and insert the GTM code manually
if you prefer.

### Is the plugin translatable?

Yes, it includes English, Spanish, and Russian translations and is fully compatible
with WordPress translation tools.

### How do I customize the read_post event?

You can adjust the time and scroll conditions in your GTM container triggers.

### How do I configure GA4 to use the dataLayer generated by this plugin?

After importing the provided GTM container, make sure your GA4 tags are set up to
use the variables from the dataLayer (such as categories, tags, access, evergreen,
etc.). You can map these variables in your GA4 configuration tag or in custom events.
The included container already provides a recommended setup for most publishers.

### Can I analyze my content performance in BigQuery?

Yes! The plugin is designed to work perfectly with Google Analytics 4 and BigQuery.
Once you have GA4 exporting data to BigQuery, you can use the dataLayer parameters(
like categories, access, editor, etc.) for advanced analysis. Example SQL queries
are provided in the plugin documentation and in the readme file.

### What kind of advanced analysis can I do with BigQuery?

You can analyze engagement rates by category, compare premium vs public content,
measure editor performance, and much more. The plugin’s dataLayer structure is optimized
for granular, actionable insights in BigQuery and other analytics tools.

### Is it safe to uninstall the plugin?

Yes, if you enable the « Delete all data on uninstall » option, all plugin settings
and custom fields will be removed using only the WordPress API (no direct database
queries). If you leave this option unchecked, your data will be preserved for future
use or reinstallation.

## Avis

Il n’y a aucun avis pour cette extension.

## Contributeurs/contributrices & développeurs/développeuses

« GTM4Publishers – Smart content tracking for blogs, news sites and magazines » 
est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

 *   [ antoniolite ](https://profiles.wordpress.org/antoniolite/)

[Traduisez « GTM4Publishers – Smart content tracking for blogs, news sites and magazines » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/gtm4publishers)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/gtm4publishers/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/gtm4publishers/), ou 
s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/gtm4publishers/)
par [RSS](https://plugins.trac.wordpress.org/log/gtm4publishers/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

#### 1.0.0

 * Initial release
 * Advanced dataLayer generation
 * Pre-configured GTM container
 * Editor detection (Elementor, Divi, WP Bakery, Gutenberg, others)
 * Custom fields for premium and evergreen content
 * Full internationalization (English, Spanish, Russian)
 * Security improvements and best practices

## Méta

 *  Version **1.0.0**
 *  Dernière mise à jour **il y a 1 an**
 *  Installations actives **Moins de 10**
 *  Version de WordPress ** 5.0 ou plus **
 *  Testé jusqu’à **6.8.11**
 *  Version de PHP ** 7.4 ou plus **
 *  Langue
 * [English (US)](https://wordpress.org/plugins/gtm4publishers/)
 * Étiquettes
 * [analytics](https://fr.wordpress.org/plugins/tags/analytics/)[datalayer](https://fr.wordpress.org/plugins/tags/datalayer/)
   [google tag manager](https://fr.wordpress.org/plugins/tags/google-tag-manager/)
   [gtm](https://fr.wordpress.org/plugins/tags/gtm/)[publisher](https://fr.wordpress.org/plugins/tags/publisher/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/gtm4publishers/advanced/)

## Évaluations

Aucun avis n’a encore été envoyé.

[Votre avis](https://wordpress.org/support/plugin/gtm4publishers/reviews/#new-post)

[Tout voir](https://wordpress.org/support/plugin/gtm4publishers/reviews/)

## Contributeurs

 *   [ antoniolite ](https://profiles.wordpress.org/antoniolite/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/gtm4publishers/)

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](https://coff.ee/antoniolite)