• 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)
  • 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

    (@duracelltomi)

    Hi,

    Optional chaining is available in most modern browsers:
    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.

    Hi @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.