{"id":159364,"date":"2022-07-05T22:22:18","date_gmt":"2022-07-05T22:22:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/datalayer-for-ecommerce-free\/"},"modified":"2026-09-11T22:25:57","modified_gmt":"2026-09-11T22:25:57","slug":"datalayer-for-ecommerce-free","status":"publish","type":"plugin","link":"https:\/\/sv.wordpress.org\/plugins\/datalayer-for-ecommerce-free\/","author":20947293,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"5.5.2","stable_tag":"5.5.2","tested":"7.1.1","requires":"5.2","requires_php":"7.4","requires_plugins":null,"header_name":"ArrayCodes Datalayer for WooCommerce FREE","header_author":"Array.codes","header_description":"DataLayer is an object that makes available in real time the information that is executed by users while browsing the WooCommerce Store.","assets_banners_color":"","last_updated":"2026-09-11 22:25:57","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/array.codes","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/datalayer-for-ecommerce-free\/","header_author_uri":"https:\/\/array.codes\/","rating":0,"author_block_rating":0,"active_installs":700,"downloads":14838,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"2.0.0":{"tag":"2.0.0","author":"arrayevida","date":"2022-07-05 22:41:23","revision":2752282},"2.0.1":{"tag":"2.0.1","author":"arrayevida","date":"2022-07-05 22:45:33","revision":2752286},"2.0.2":{"tag":"2.0.2","author":"arrayevida","date":"2022-09-21 22:11:00","revision":2788397},"2.4.0":{"tag":"2.4.0","author":"arrayevida","date":"2023-03-29 00:35:30","revision":2888757},"2.7.0":{"tag":"2.7.0","author":"arraycodes","date":"2023-06-20 23:20:24","revision":2928877},"3.0.0":{"tag":"3.0.0","author":"arraycodes","date":"2023-10-30 23:25:26","revision":2986451},"3.1.0":{"tag":"3.1.0","author":"arraycodes","date":"2023-11-29 23:31:08","revision":3003489},"3.2.0":{"tag":"3.2.0","author":"arraycodes","date":"2023-12-14 23:52:39","revision":3010307},"3.3.0":{"tag":"3.3.0","author":"arraycodes","date":"2024-03-28 00:00:56","revision":3060192},"3.4.0":{"tag":"3.4.0","author":"arraycodes","date":"2024-06-10 00:14:29","revision":3100214},"4.0.0":{"tag":"4.0.0","author":"arraycodes","date":"2024-07-03 23:48:39","revision":3111998},"4.3.0":{"tag":"4.3.0","author":"arraycodes","date":"2024-10-29 02:06:35","revision":3177579},"4.6.0":{"tag":"4.6.0","author":"arraycodes","date":"2025-02-05 03:19:34","revision":3235109},"4.8.0":{"tag":"4.8.0","author":"arraycodes","date":"2025-05-14 00:11:04","revision":3292885},"5.1.0":{"tag":"5.1.0","author":"arraycodes","date":"2026-03-06 02:34:25","revision":3476032},"5.5.0":{"tag":"5.5.0","author":"arraycodes","date":"2026-08-07 02:52:28","revision":3637251},"5.5.1":{"tag":"5.5.1","author":"arraycodes","date":"2026-09-10 02:58:05","revision":3689230},"5.5.2":{"tag":"5.5.2","author":"arraycodes","date":"2026-09-11 22:25:57","revision":3692160}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3637251,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3637251,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0.0","2.0.1","2.0.2","2.4.0","2.7.0","3.0.0","3.1.0","3.2.0","3.3.0","3.4.0","4.0.0","4.3.0","4.6.0","4.8.0","5.1.0","5.5.0","5.5.1","5.5.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3637251,"resolution":"1","location":"assets","locale":"","width":1920,"height":758},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3637251,"resolution":"2","location":"assets","locale":"","width":1880,"height":740},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3637251,"resolution":"3","location":"assets","locale":"","width":1920,"height":742},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3637251,"resolution":"4","location":"assets","locale":"","width":1360,"height":636},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3692160,"resolution":"5","location":"plugin","width":1360,"height":636}},"screenshots":{"1":"Google Tag Manager Settings screen plugin.","2":"Ecommerce Settings screen plugin.","3":"Ecommerce Advanced screen plugin.","4":"Tags Google Analytics 4 imported"}},"plugin_section":[],"plugin_tags":[986,32831,985,194583,23294],"plugin_category":[36],"plugin_contributors":[219466,211796,90362],"plugin_business_model":[],"class_list":["post-159364","plugin","type-plugin","status-publish","hentry","plugin_tags-conversion-tracking","plugin_tags-ecommerce-tracking","plugin_tags-google-ads","plugin_tags-google-analytics-4","plugin_tags-google-tag-manager","plugin_category-analytics","plugin_contributors-arraycodes","plugin_contributors-arrayevida","plugin_contributors-heitor_tito","plugin_committers-arraycodes"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/datalayer-for-ecommerce-free\/assets\/icon-128x128.png?rev=3637251","icon_2x":"https:\/\/ps.w.org\/datalayer-for-ecommerce-free\/assets\/icon-256x256.png?rev=3637251","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/datalayer-for-ecommerce-free\/assets\/screenshot-1.png?rev=3637251","caption":"Google Tag Manager Settings screen plugin."},{"src":"https:\/\/ps.w.org\/datalayer-for-ecommerce-free\/assets\/screenshot-2.png?rev=3637251","caption":"Ecommerce Settings screen plugin."},{"src":"https:\/\/ps.w.org\/datalayer-for-ecommerce-free\/assets\/screenshot-3.png?rev=3637251","caption":"Ecommerce Advanced screen plugin."},{"src":"https:\/\/ps.w.org\/datalayer-for-ecommerce-free\/assets\/screenshot-4.png?rev=3637251","caption":"Tags Google Analytics 4 imported"},{"src":"https:\/\/ps.w.org\/datalayer-for-ecommerce-free\/trunk\/screenshot-5.png?rev=3692160","caption":""}],"raw_content":"<!--section=description-->\n<p>Track WooCommerce product views and purchases in Google Analytics 4 \u2014 and use the same data to build your own Facebook Pixel or Google Ads tags in Google Tag Manager \u2014 with no coding required.<\/p>\n\n<p>Datalayer for WooCommerce FREE pushes a complete dataLayer into Google Tag Manager for every visitor action:<\/p>\n\n<ol>\n<li>Product Detail Impressions (<code>view_item<\/code>) \u2014 full product data (ID, price, currency), ready to power a custom Facebook Pixel or Google Ads tag too<\/li>\n<li>Related Products in Product Page (<code>view_item_list<\/code>)<\/li>\n<li>Purchase (<code>purchase<\/code>) \u2014 full order data (ID, value, currency, items), ready to power a custom Facebook Pixel or Google Ads tag too<\/li>\n<\/ol>\n\n<p>Want a ready-made GTM container for Google Ads, Meta Ads, Pinterest Ads, TikTok Ads and Microsoft Ads \u2014 plus all events (add_to_cart, begin_checkout, add_shipping_info and more), Consent Mode and Server-to-Server tracking?\nGet the PRO version from the Official WooCommerce Store: <a href=\"https:\/\/woocommerce.com\/products\/datalayer-for-woocommerce\/\">Datalayer for WooCommerce PRO<\/a><\/p>\n\n<p>Discover our demo store:\n<a href=\"https:\/\/demoshop.arrayevida.com.br\/\">Demo Shop<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/datalayer-for-ecommerce-free<\/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>Use the WooCommerce &gt; Datalayer for WooCommerce -&gt; screen to configure the plugin<\/li>\n<\/ol>\n\n<h4>Configuration<\/h4>\n\n<p>Google Tag Manager ID -&gt; Enter the GTM-XXXXXX ID to activate the Google Tag Manager code snippet\nDataLayer for WooCommerce Ecommerce GA4 -&gt; Enable this option if you use only <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/ga4\/ecommerce?client_type=gtm\">Google Analytics 4 (GA4)<\/a>\nShow user info -&gt; Select if user information show or not when logged<\/p>\n\n<h4>Import Google Tag Manager<\/h4>\n\n<ol>\n<li>Download the workspace.zip file in WooCommerce &gt; Datalayer for WooCommerce &gt; Download import File GTM.<\/li>\n<li>Go to Google Tag Manager &gt; Admin &gt; Import Container<\/li>\n<li>Select the file you want to import: GTM-GA4-FREE.json<\/li>\n<li>After selecting the file, import the tags.<\/li>\n<\/ol>\n\n<h4>Settings Google Analytics 4<\/h4>\n\n<ol>\n<li>In GTM, go to the tag GA4 \u2013 Tag and add your measurement id and click save.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>5.5.2 - 2026-09-11<\/h4>\n\n<ul>\n<li>Update: Plugin display name updated to comply with WordPress.org directory naming guidelines<\/li>\n<li>Fix: \"Requires at least\" now declares only the major WordPress version<\/li>\n<li>Fix: Added sanitize_callback to the settings registered via register_setting()<\/li>\n<\/ul>\n\n<h4>5.5.1 - 2026-09-09<\/h4>\n\n<ul>\n<li>Support: Support -&gt; WP 7.1 WC 11.1.0<\/li>\n<\/ul>\n\n<h4>5.5.0 - 2026-08-06<\/h4>\n\n<ul>\n<li>New: Option Trigger Purchase only once - prevents a duplicate purchase event when the customer refreshes the thank you page<\/li>\n<li>New: Option Purchase value without tax<\/li>\n<li>Support: Support -&gt; WP 7.0.3 WC 11.0.0<\/li>\n<\/ul>\n\n<h4>5.1.0 - 2026-03-05<\/h4>\n\n<ul>\n<li>Update: Packages dependencies<\/li>\n<li>Support: Support -&gt; WP 6.9 WC 10.5.3<\/li>\n<\/ul>\n\n<h4>4.8.0 - 2025-05-14<\/h4>\n\n<ul>\n<li>Support: Support -&gt; WP 6.8.1 WC 9.8.5<\/li>\n<\/ul>\n\n<h4>4.6.0 - 2025-01-29<\/h4>\n\n<ul>\n<li>Update: Packages dependencies<\/li>\n<li>Support: Support -&gt; WP 6.7.1 WC 9.6.0<\/li>\n<\/ul>\n\n<h4>4.3.0 - 2024-10-28<\/h4>\n\n<ul>\n<li>New: Option Show view_item_list related product in product page<\/li>\n<li>Support: Support -&gt; WP 6.6.2 WC 9.3.3<\/li>\n<\/ul>\n\n<h4>4.0.0 - 2024-07-03<\/h4>\n\n<ul>\n<li>Remove: Option DataLayer for WooCommerce Enhanced Ecommerce removed<\/li>\n<li>Support: Support -&gt; WP 6.5.5 WC 9.0.2<\/li>\n<\/ul>\n\n<h4>3.4.0 - 2024-06-10<\/h4>\n\n<ul>\n<li>Update: Push Datalayer function without jQuery<\/li>\n<li>Update: Get Country Code Phone Number User<\/li>\n<li>Support: Support -&gt; WP 6.5.3 WC 8.9.2<\/li>\n<\/ul>\n\n<h4>3.3.0 - 2024-03-27<\/h4>\n\n<ul>\n<li>New: Parameter item_category with multiples categories in all events<\/li>\n<li>Fix: Php 8.2 deprecated function get options<\/li>\n<li>Fix: Product tax update in item price<\/li>\n<li>Support: Support -&gt; WP 6.4.3 WC 8.7.0<\/li>\n<\/ul>\n\n<h4>3.2.0 - 2023-12-15<\/h4>\n\n<ul>\n<li>Update: Compatibility with multicurrency WPML plugin<\/li>\n<li>Support: Support -&gt; WP 6.4.2 WC 8.4.0<\/li>\n<\/ul>\n\n<h4>3.1.0 - 2023-11-29<\/h4>\n\n<ul>\n<li>Update: Select only one datalayer type in ecommerce settings<\/li>\n<li>Support: Support -&gt; WP 6.4.1 WC 8.2.2<\/li>\n<\/ul>\n\n<h4>3.0.0 - 2023-10-30<\/h4>\n\n<ul>\n<li>New: Full compatibility with WooCommerce Blocks<\/li>\n<li>New: New Modern Admin Page<\/li>\n<li>Support: Support -&gt; WP 6.3.2 WC 8.2.1<\/li>\n<\/ul>\n\n<h4>2.7.0 - 2023-06-21<\/h4>\n\n<ul>\n<li>New: Select if user information show or not when logged<\/li>\n<li>New: Full Compatibility HPOS - High-Performance order storage (COT)<\/li>\n<li>Support: Support -&gt; WP 6.2.2 WC 7.8.0<\/li>\n<\/ul>\n\n<h4>2.4.0 - 2023-03-29<\/h4>\n\n<ul>\n<li>Support: Support -&gt; WP 6.1.1 WC 7.5.1<\/li>\n<li>Update: optimization and improvement of the code that triggers the events<\/li>\n<\/ul>\n\n<h4>2.0.2 - 2022-09-21<\/h4>\n\n<ul>\n<li>Support: WP 6.0.2 WC 6.9.3<\/li>\n<li>Fix: Multisite full support check WooCommerce Active<\/li>\n<\/ul>\n\n<h4>2.0.0 - 2022-06-22<\/h4>\n\n<ul>\n<li>First Release<\/li>\n<\/ul>","raw_excerpt":"Track WooCommerce product views and purchases in Google Analytics 4 \u2014 and use the same data to build your own Facebook Pixel or Google Ads tags in Goo &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/159364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=159364"}],"author":[{"embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/arraycodes"}],"wp:attachment":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=159364"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=159364"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=159364"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=159364"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=159364"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=159364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}