Torben Lundsgaard
Forum Replies Created
-
Forum: Plugins
In reply to: [GTM Kit - Google Tag Manager & GA4 integration] DivisionByZeroErrorThe fix has been merged and will included in a release tomorrow. Thank you for bring this to my attention!
Forum: Plugins
In reply to: [GTM Kit - Google Tag Manager & GA4 integration] DivisionByZeroErrorThat does not make sense. The only way that you can have division by zero is if $item[‘quantity’] is zero. I’m not sure what the cause is when quantity is zero but i have the following check to prevent it in any case:
if ( isset( $item['quantity'] ) && $item['quantity'] > 0 ) {
$discount = $discount / $item['quantity'];
} else {
$discount = 0;
}It will be included in the next release
I have testet your sites and the datalayer is published as expected.
Have you tried any of the templates from GTM Kit? You can find them in ‘GTM Kit > GTM Templates’Please go to ‘GTM Kit > Help > Support > Share system data with the GTM Kit support team’ and enter the support ticket: FS864-2D737
Forum: Plugins
In reply to: [GTM Kit - Google Tag Manager & GA4 integration] Missing cookie?GTM Kit does not set cookies. Google Tag Manager and the tags you fire set cookies.
I don’t know which cookie management solution you are using but it does seem like it is blocking all cookies.
Can i close this?
Forum: Plugins
In reply to: [GTM Kit - Google Tag Manager & GA4 integration] Missing cookie?Please go to ‘GTM Kit > Help > Support > Share system data with the GTM Kit support team’ and enter the support ticket: FS862-AD0A5
Let’s start by confirming that the purchase event data is generated
Please go to ‘GTM Kiit > General > Misc > Logging and debugging > Debug log’ and log the “purchase” event to the debug log. Make a test purchase or wait for a customer to make a purchase, and go to ‘WooCommerce > Status > Logs’. Let me know if there is an entry named ‘gtmkit-purchase’.
Please go to ‘GTM Kit > Help > Support > Share system data with the GTM Kit support team’ and enter the support ticket: FS860-3D10E
You are welcome
Have you customised the /checkout/order-received/ page in any way? Usually this kind of problem is caused by a redirect which prevents the script from firing.
The purchase event is only fired once but you can add the following to you wp-config.php, which will remove the limit. This is for testing only or you will likely get multiple purchase events for some orders.
define( 'GTMKIT_WC_DEBUG_TRACK_PURCHASE', true );
Please go to ‘GTM Kiit > General > Misc > Logging and debugging > Debug log’ and log the “purchase” event to the debug log. Make a test purchase or wait for a customer to make a purchase, and go to ‘WooCommerce > Status > Logs’. Let me know if there is an entry named ‘gtmkit-purchase’.
Please go to ‘GTM Kit > Help > Support > Share system data with the GTM Kit support team’ and enter the support ticket: FS859-F85AB
Forum: Plugins
In reply to: [GTM Kit - Google Tag Manager & GA4 integration] Purchase event missingClosing this
Closing this