| 开发者 | |
|---|---|
| 更新时间 | 2026年7月3日 11:43 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
dataLayer in the consolepageType - Type of page (post, page, category, tag, archive, search, 404, etc.)postId - Post/Page IDpostTitle - Post/Page titlepostAuthor - Author namepostCategory - Post categoriespostTags - Post tagsisLoggedIn - Whether user is logged insiteName - Site namesiteUrl - Site URLproductId - Product IDproductName - Product nameproductPrice - Product priceproductQuantity - Product quantitycartTotal - Cart totalcheckoutStep - Checkout step/wp-content/plugins/scripts-and-pixels-datalayer-manager directory, or install the plugin through the WordPress plugins screen directlydataLayer variablesYes! The plugin creates a dataLayer object that is compatible with Google Tag Manager and Google Analytics 4.
No configuration is required. The plugin automatically detects and injects variables on all pages.
Yes! When WooCommerce is active, the plugin automatically detects product, cart, and checkout data.
Custom variables per page are available in the premium version. The free version includes automatic detection of WordPress and WooCommerce variables.
Open your browser's Developer Tools (F12), go to the Console tab, and type dataLayer. You'll see all the automatically detected variables.