Hi,
I’m using the free version but need to track the events like add to cart en begin checkout, which are not included in the free version.
Can I just purchase the Premium version and install it without overwriting the purchase and view item events tags that are already in GTM? And should I remove the free plugin in WooCommerce first before installing the Premium plugin or can I just overwrite the free plugin with the premium version without losing the settings that are already set?
]]>I have a question about your plugin, does your plugin maybe have the ability to add the order status to the data layer so that when I retrieve the dataLayer I can check if the order status is Completed then I will do whatever, if not then not…
]]>Hi there,
eveerytime I try to update the plugin I get this fatal error.. Any advice?
Fatal error: Uncaught TypeError: Unsupported operand types: array + string in /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderProduct.php:193 Stack trace: #0 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderProduct.php(36): DatalayerForWoocommerceFree\RenderProduct::prepare_impressions_items(Array, NULL, 1, true, true, false) #1 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderDataLayerPro.php(118): DatalayerForWoocommerceFree\RenderProduct::mount_measuring_views_of_product_details_data_layer(Object(WC_Product_Simple), Array) #2 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-includes/class-wp-hook.php(324): DatalayerForWoocommerceFree\RenderDataLayerPro->search_page_trigger(”) #3 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-includes/general-template.php(3052): do_action(‘wp_head’) #6 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-content/themes/woostify/header.php(12): wp_head() #7 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-includes/template.php(790): require_once(‘/home/srv55898/…’) #8 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-includes/template.php(725): load_template(‘/home/srv55898/…’, true, Array) #9 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #10 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-content/plugins/woostify-pro/modules/woo-builder/template/header.php(52): get_header() #11 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-content/plugins/woostify-pro/modules/woo-builder/template/product-page.php(15): require_once(‘/home/srv55898/…’) #12 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-includes/template-loader.php(106): include(‘/home/srv55898/…’) #13 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-blog-header.php(19): require_once(‘/home/srv55898/…’) #14 /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/index.php(17): require(‘/home/srv55898/…’) #15 {main} thrown in /home/srv55898/domains/grzybkihurt.omyu.pl/public_html/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderProduct.php on line 193
W witrynie wyst?pi? b??d krytyczny.
]]>Hi! Installed the plugin and tried to activate it. I got the message: The plugin is missing a valid header block. Using Storefront theme with child theme and woocommerce. How can we fix this.
Best Regards
Bjorn
[08-Nov-2023 13:03:04 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: array + string in /nas/content/live/******/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderProduct.php:193
Stack trace:
#0 /nas/content/live/******/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderProduct.php(36): DatalayerForWoocommerceFree\RenderProduct::prepare_impressions_items(Array, NULL, 1, true, true, false)
#1 /nas/content/live/******/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderDataLayerPro.php(118): DatalayerForWoocommerceFree\RenderProduct::mount_measuring_views_of_product_details_data_layer(Object(WC_Product_Woosb), Array)
#2 /nas/content/live/******/wp-includes/class-wp-hook.php(310): DatalayerForWoocommerceFree\RenderDataLayerPro->search_page_trigger('')
#3 /nas/content/live/******/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#4 /nas/content/live/******/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /nas/content/live/******/wp-includes/general-template.php(3053): do_action('wp_head')
#6 /nas/content/live/******/wp-content/themes/storefront/header.php(19): wp_head()
#7 /nas/content/live/******/wp-includes/template.php(785): require_once('/nas/content/li...')
#8 /nas/content/live/******/wp-includes/template.php(720): load_template('/nas/content/li...', true, Array)
#9 /nas/content/live/******/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
#10 /nas/content/live/******/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header('shop')
#11 /nas/content/live/******/wp-includes/template-loader.php(106): include('/nas/content/li...')
#12 /nas/content/live/******/wp-blog-header.php(19): require_once('/nas/content/li...')
#13 /nas/content/live/******/index.php(17): require('/nas/content/li...')
#14 {main}
thrown in /nas/content/live/******/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderProduct.php on line 193
Hi! We woke up with the page down with this error after the plugin was updated to version 3.0.0
]]>Hello!
Our client’s page stopped sending add_to_cart events weeks ago and is now sending form_submits instead, this is obviously problematic with tracking. I cannot find another source for this problem.
]]>This free version of the plugin does its job just fine – many thanks to the author.
But for privacy reasons, I’d like to disable the ‘VisitorContactInfo’ part of the purchase event’s DataLayer. That part holds personal information about the customer that I don’t want to send to Google, and moreover it’s probably illegal in the EU to do so.
In fact, I’m not reading anything about a ‘VisitorContactInfo’ part of any DataLayer on Google’s support pages. So maybe this isn’t an official thing? If not, then I would recommend getting rid of it entirely.
If it should be there, then I think a WordPress action or filter would be ideal for making it optional, or else a checkbox on the settings screen. This would be great for both the free and paid versions of your plugin.
I hope you will consider this for your European / privacy-minded users. In the meantime I’ll remove the ‘VisitorContactInfo’ part manually from the code for now.
]]>Hello,
Bought, installed and configured the plugin “Datalayer for WooCommerce” Version 2.5.0 (not free).
After that the base page of shop stopped working and the error appears:
There has been a critical error on this website.
Then I enabled debug mode and got more detailed information about the issue:Fatal error: Uncaught Error: Call to a member function get_category_ids() on bool in /data/sites/web/samaralieu/www/wp-content/plugins/datalayer-for-woocommerce/src/RenderProduct.php:269 Stack trace: #0 /data/sites/web/samaralieu/www/wp-content/plugins/datalayer-for-woocommerce/src/RenderDataLayerPro.php(266): DatalayerForWoocommerce\RenderProduct::prepare_impressions_items() #1 /data/sites/web/samaralieu/www/wp-includes/class-wp-hook.php(308): DatalayerForWoocommerce\RenderDataLayerPro->datalayer_enqueue_script() #2 /data/sites/web/samaralieu/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #3 /data/sites/web/samaralieu/www/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /data/sites/web/samaralieu/www/wp-includes/script-loader.php(2180): do_action() #5 /data/sites/web/samaralieu/www/wp-includes/class-wp-hook.php(308): wp_enqueue_scripts() #6 /data/sites/web/samaralieu/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #7 /data/sites/web/samaralieu/www/wp-includes/plugin.php(517): WP_Hoo in /data/sites/web/samaralieu/www/wp-content/plugins/datalayer-for-woocommerce/src/RenderProduct.php on line 269
Then I disabled the plugin and the error was not reproduced.
Please assist to fix the issue.
WordPress version 6.1.1
WooCommerce version 7.6.1
Divi Theme version 4.21.0
jQuery(function($) {
if(typeof dataLayer == "undefined"){
dataLayer = [];
}
dataLayer.push({"user":{"id":1,"em":"","ph":"","fn":"","ln":"","ct":"","st":"","zp":"","country":"","external_id":1}});
});
Why are we using jQuery here? My WordPress site doesn’t use jQuery besides on the checkout, and that will go away once I move to the block checkout. Please use vanilla JavaScript.
]]>Hi,
Do you plan to add Woocommerce data layers support for Piwik Pro analytics? It would be great if you could.