{"id":280779,"date":"2026-03-19T03:40:00","date_gmt":"2026-03-19T03:40:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/datalayer-manager\/"},"modified":"2026-03-29T21:23:57","modified_gmt":"2026-03-29T21:23:57","slug":"scripts-and-pixels-datalayer-manager","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/scripts-and-pixels-datalayer-manager\/","author":17199440,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"1.0.1","tested":"6.9.4","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Scripts + Pixels DataLayer Manager","header_author":"Scripts + Pixels","header_description":"Automatically detects WordPress context and injects dataLayer variables for analytics tools (GA4\/GTM). No coding required.","assets_banners_color":"","last_updated":"2026-03-29 21:23:57","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/scriptsandpixels.studio","rating":0,"author_block_rating":0,"active_installs":0,"downloads":192,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"darinnj","date":"2026-03-19 03:42:06"},"1.0.1":{"tag":"1.0.1","author":"darinnj","date":"2026-03-29 21:23:57"}},"upgrade_notice":{"1.0.1":"<p>Readme updates only; no functional changes.<\/p>","1.0.0":"<p>Initial release. Automatically detects WordPress and WooCommerce dataLayer variables with zero configuration.<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Overview screen showing auto-detection status","2":"Auto-detected variables documentation","3":"Meta box showing auto-detected variables (always visible)","4":"Custom variables section (premium feature)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[232,43896,23294,550,286],"plugin_category":[36,45],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-280779","plugin","type-plugin","status-publish","hentry","plugin_tags-analytics","plugin_tags-datalayer","plugin_tags-google-tag-manager","plugin_tags-tracking","plugin_tags-woocommerce","plugin_category-analytics","plugin_category-ecommerce","plugin_committers-darinnj"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/scripts-and-pixels-datalayer-manager.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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).<\/p>\n\n<p><strong>No coding required!<\/strong> The plugin automatically detects WordPress and WooCommerce data and injects it into the dataLayer on every page.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>Automatic Detection<\/strong> - Automatically detects page type, post data, categories, tags, and more<\/li>\n<li><strong>WooCommerce Support<\/strong> - Detects product data, pricing, cart information, and checkout details<\/li>\n<li><strong>Zero Configuration<\/strong> - Works out of the box with no setup required<\/li>\n<li><strong>Clean Code<\/strong> - Follows WordPress coding standards and best practices<\/li>\n<li><strong>Developer Friendly<\/strong> - Well-documented code and extensible hooks<\/li>\n<\/ul>\n\n<h4>How It Works<\/h4>\n\n<ol>\n<li>Install and activate the plugin<\/li>\n<li>Visit any page on your website<\/li>\n<li>Open browser Developer Tools (F12)<\/li>\n<li>Type <code>dataLayer<\/code> in the console<\/li>\n<li>See all automatically detected variables!<\/li>\n<\/ol>\n\n<h4>WordPress Variables<\/h4>\n\n<p>The plugin automatically detects and injects variables like:<\/p>\n\n<ul>\n<li><code>pageType<\/code> - Type of page (post, page, category, tag, archive, search, 404, etc.)<\/li>\n<li><code>postId<\/code> - Post\/Page ID<\/li>\n<li><code>postTitle<\/code> - Post\/Page title<\/li>\n<li><code>postAuthor<\/code> - Author name<\/li>\n<li><code>postCategory<\/code> - Post categories<\/li>\n<li><code>postTags<\/code> - Post tags<\/li>\n<li><code>isLoggedIn<\/code> - Whether user is logged in<\/li>\n<li><code>siteName<\/code> - Site name<\/li>\n<li><code>siteUrl<\/code> - Site URL<\/li>\n<li>And more...<\/li>\n<\/ul>\n\n<h4>WooCommerce Variables<\/h4>\n\n<p>When WooCommerce is active, additional variables are automatically detected:<\/p>\n\n<ul>\n<li><code>productId<\/code> - Product ID<\/li>\n<li><code>productName<\/code> - Product name<\/li>\n<li><code>productPrice<\/code> - Product price<\/li>\n<li><code>productQuantity<\/code> - Product quantity<\/li>\n<li><code>cartTotal<\/code> - Cart total<\/li>\n<li><code>checkoutStep<\/code> - Checkout step<\/li>\n<li>And more...<\/li>\n<\/ul>\n\n<h4>Free vs Premium<\/h4>\n\n<p><strong>Free Version Includes:<\/strong>\n* Automatic detection of WordPress and WooCommerce variables\n* Works on all page types (posts, pages, products, archives, etc.)\n* Zero configuration required<\/p>\n\n<p><strong>Premium Version Adds:<\/strong>\n* Custom variables per page\/post\/product\n* Visual editor in WordPress admin\n* Preview auto-detected variables before publishing\n* Priority support and updates<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/scripts-and-pixels-datalayer-manager<\/code> directory, or install the plugin through the WordPress plugins screen directly<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Visit any page on your website and check the browser console for <code>dataLayer<\/code> variables<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20work%20with%20google%20tag%20manager%3F\"><h3>Does this work with Google Tag Manager?<\/h3><\/dt>\n<dd><p>Yes! The plugin creates a <code>dataLayer<\/code> object that is compatible with Google Tag Manager and Google Analytics 4.<\/p><\/dd>\n<dt id=\"do%20i%20need%20to%20configure%20anything%3F\"><h3>Do I need to configure anything?<\/h3><\/dt>\n<dd><p>No configuration is required. The plugin automatically detects and injects variables on all pages.<\/p><\/dd>\n<dt id=\"does%20this%20work%20with%20woocommerce%3F\"><h3>Does this work with WooCommerce?<\/h3><\/dt>\n<dd><p>Yes! When WooCommerce is active, the plugin automatically detects product, cart, and checkout data.<\/p><\/dd>\n<dt id=\"can%20i%20add%20custom%20variables%3F\"><h3>Can I add custom variables?<\/h3><\/dt>\n<dd><p>Custom variables per page are available in the premium version. The free version includes automatic detection of WordPress and WooCommerce variables.<\/p><\/dd>\n<dt id=\"where%20can%20i%20see%20the%20datalayer%20variables%3F\"><h3>Where can I see the dataLayer variables?<\/h3><\/dt>\n<dd><p>Open your browser's Developer Tools (F12), go to the Console tab, and type <code>dataLayer<\/code>. You'll see all the automatically detected variables.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Readme updates for the WordPress.org plugin directory.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>Automatic detection of WordPress variables<\/li>\n<li>WooCommerce support<\/li>\n<li>Admin interface for viewing status and documentation<\/li>\n<li>Meta box for viewing auto-detected variables<\/li>\n<\/ul>","raw_excerpt":"Automatically detects WordPress context and injects dataLayer variables for analytics tools (GA4\/GTM). No coding required.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/280779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=280779"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/darinnj"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=280779"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=280779"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=280779"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=280779"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=280779"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=280779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}