Scripts + Pixels DataLayer Manager
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
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
- 01Install and activate the plugin
- 02Visit any page on your website
- 03Open browser Developer Tools (F12)
- 04Type dataLayer in the console
- 05See 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 ID
- postTitle – Post/Page title
- postAuthor – Author name
- postCategory – Post categories
- postTags – Post tags
- isLoggedIn – Whether user is logged in
- siteName – Site name