Title: Users missing cart content data
Last modified: December 22, 2021

---

# Users missing cart content data

 *  [Schmuxy](https://wordpress.org/support/users/schmuxy/)
 * (@schmuxy)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/users-missing-cart-content-data/)
 * Hey,
 * since dec 14th (may have been the day we made an update) some of our users do
   not propagate cart content data correctly. meaning it is undefined in the data
   layer.
 * We are having trouble replicating the issue on our environment, but sentry does
   show some clues, pointing in the direction of the plugin.
 * /wp-content/plugins/duracelltomi-google-tag-manager/js/gtm4wp-woocommerce-enhanced.
   js at line 71:55
 * breaks at:
    `const productdata = qty_el.closest( '.cart_item' )?.querySelector('.
   remove' );`
 * could we get some help with this?

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

 *  [eumene](https://wordpress.org/support/users/eumene/)
 * (@eumene)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/users-missing-cart-content-data/#post-15211779)
 * I have the same issue.
 * I seems to be releated to the ?. (optional chaining) opeator for user with old
   browser.
 * They get a syntax error like
    `SyntaxError: expected expression, got '.'`
 * Can you change it to preserve backward compatibility ?
 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/users-missing-cart-content-data/#post-15214298)
 * Hi,
 * Optional chaining is available in most modern browsers:
    [https://caniuse.com/mdn-javascript_operators_optional_chaining](https://caniuse.com/mdn-javascript_operators_optional_chaining)
 * Do you have stats on your site about how much percent of visitors “see” this 
   error? I mean how many users are visiting your site using outdated browsers?
 * And since WordPress core does not support Internet Explorer anymore at all, I
   wouldn’t could IE users into this group.
 *  [eumene](https://wordpress.org/support/users/eumene/)
 * (@eumene)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/users-missing-cart-content-data/#post-15216781)
 * Hi [@duracelltomi](https://wordpress.org/support/users/duracelltomi/)
 * I got your point.
    The issue is raised by IE11 users, indeed.
 * I will discuss with my boss.
    For now I had to downgrade to 1.3.1 version
 * Thanks
 * Diego

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

The topic ‘Users missing cart content data’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

## Tags

 * [datalayer](https://wordpress.org/support/topic-tag/datalayer/)

 * 3 replies
 * 3 participants
 * Last reply from: [eumene](https://wordpress.org/support/users/eumene/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/users-missing-cart-content-data/#post-15216781)
 * Status: not resolved