跳到内容

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

v1.0.0

antoniolite · 2025年7月28日 上架

Integrate Google Tag Manager into WordPress and generate an advanced, customizable dataLayer for publishers, blogs, and digital media.

正在使用
10 以下
评分
暂无
累计下载
556
最近更新
2025年7月29日
需要 WordPress 5.0+已测试到 6.8.13PHP 7.4+

贡献者

截图

General settings
General settings
Separators configuration
Separators configuration
Content configuration
Content configuration
CSS Selectors configuration
CSS Selectors configuration
dataLayer parameters configuration
dataLayer parameters configuration

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
Telegram support group — https://t.me/GTM4Publishers

Donate link

https://coff.ee/antoniolite

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums