Title: datalayer quantity null
Last modified: December 4, 2025

---

# datalayer quantity null

 *  Resolved [weberinfosp](https://wordpress.org/support/users/weberinfosp/)
 * (@weberinfosp)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/datalayer-quantity-null/)
 * I’m integrating with GA4 via GTM, and in the e-commerce layer, the quantity appears
   as null, and the event doesn’t show up in GA4 due to the missing quantity. I 
   don’t know why the quantity 1 isn’t appearing. Thank you!
 * Image: [https://imgur.com/a/ATmauVw](https://imgur.com/a/ATmauVw)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatalayer-quantity-null%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Torben Lundsgaard](https://wordpress.org/support/users/torbenlundsgaard/)
 * (@torbenlundsgaard)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/datalayer-quantity-null/#post-18743801)
 * Please go to ‘GTM Kit > Help > Support > Share system data with the GTM Kit support
   team’ and enter the support ticket: FS909-1F0B2
 *  Plugin Author [Torben Lundsgaard](https://wordpress.org/support/users/torbenlundsgaard/)
 * (@torbenlundsgaard)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/datalayer-quantity-null/#post-18744020)
 * I have found the problem. You are using WooCommerce for affiliate marketing on
   amazon and therefor the add-to-cart button is not a regular button and the form
   does not contain the quantity.
 * I have made a small change that sets the quantity to 1 when quantity is not available
   in the add-to-cart form. Please install and test this fix: [https://we.tl/t-NHEcu5c10P](https://we.tl/t-NHEcu5c10P)
 *  Thread Starter [weberinfosp](https://wordpress.org/support/users/weberinfosp/)
 * (@weberinfosp)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/datalayer-quantity-null/#post-18744155)
 * Yes, that was exactly it, I use the button as external (Affiliate) and the quantity
   has to be prefixed to 1. Thank you very much for the quick solution.
 *  Plugin Author [Torben Lundsgaard](https://wordpress.org/support/users/torbenlundsgaard/)
 * (@torbenlundsgaard)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/datalayer-quantity-null/#post-18744160)
 * You are welcome. It will be part of the next release

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘datalayer quantity null’ is closed to new replies.

 * ![](https://ps.w.org/gtm-kit/assets/icon.svg?rev=2783020)
 * [GTM Kit - Google Tag Manager & GA4 integration](https://wordpress.org/plugins/gtm-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gtm-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gtm-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/gtm-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gtm-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gtm-kit/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Torben Lundsgaard](https://wordpress.org/support/users/torbenlundsgaard/)
 * Last activity: [6 months, 1 week ago](https://wordpress.org/support/topic/datalayer-quantity-null/#post-18744160)
 * Status: resolved