توضیحات
Scripts + Pixels DataLayer Manager automatically creates and manages a dataLayer object for your WordPress site. This object contains structured data about your pages, posts, products, and user interactions that can be used by analytics tools like Google Tag Manager (GTM) and Google Analytics 4 (GA4).
No coding required! The plugin automatically detects WordPress and WooCommerce data and injects it into the dataLayer on every page.
Key Features
- Automatic Detection – Automatically detects page type, post data, categories, tags, and more
- WooCommerce Support – Detects product data, pricing, cart information, and checkout details
- Zero Configuration – Works out of the box with no setup required
- Clean Code – Follows WordPress coding standards and best practices
- Developer Friendly – Well-documented code and extensible hooks
How It Works
- Install and activate the plugin
- Visit any page on your website
- Open browser Developer Tools (F12)
- Type
dataLayerin the console - See all automatically detected variables!
WordPress Variables
The plugin automatically detects and injects variables like:
pageType– 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 URL- And more…
WooCommerce Variables
When WooCommerce is active, additional variables are automatically detected:
productId– Product IDproductName– Product nameproductPrice– Product priceproductQuantity– Product quantitycartTotal– Cart totalcheckoutStep– Checkout step- And more…
Free vs Premium
Free Version Includes:
* Automatic detection of WordPress and WooCommerce variables
* Works on all page types (posts, pages, products, archives, etc.)
* Zero configuration required
Premium Version Adds:
* Custom variables per page/post/product
* Visual editor in WordPress admin
* Preview auto-detected variables before publishing
* Priority support and updates
نصب
- Upload the plugin files to the
/wp-content/plugins/scripts-and-pixels-datalayer-managerdirectory, or install the plugin through the WordPress plugins screen directly - Activate the plugin through the ‘Plugins’ screen in WordPress
- Visit any page on your website and check the browser console for
dataLayervariables
سوالات متداول
-
Does this work with Google Tag Manager?
-
Yes! The plugin creates a
dataLayerobject that is compatible with Google Tag Manager and Google Analytics 4. -
Do I need to configure anything?
-
No configuration is required. The plugin automatically detects and injects variables on all pages.
-
Does this work with WooCommerce?
-
Yes! When WooCommerce is active, the plugin automatically detects product, cart, and checkout data.
-
Can I add custom variables?
-
Custom variables per page are available in the premium version. The free version includes automatic detection of WordPress and WooCommerce variables.
-
Where can I see the dataLayer variables?
-
Open your browser’s Developer Tools (F12), go to the Console tab, and type
dataLayer. You’ll see all the automatically detected variables.
نقد و بررسیها
نقد و بررسیای برای این افزونه یافت نشد.
توسعه دهندگان و همکاران
“Scripts + Pixels DataLayer Manager” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کردهاند.
مشارکت کنندگانترجمه “Scripts + Pixels DataLayer Manager” به زبان شما.
علاقه مند به توسعه هستید؟
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
گزارش تغییرات
1.0.0
- Initial release
- Automatic detection of WordPress variables
- WooCommerce support
- Admin interface for viewing status and documentation
- Meta box for viewing auto-detected variables