• Hey,

    Thanks for the amazing plugin!

    I have faced an error for select_item event (when I click on an item in a list).

    Error details:

    Uncaught TypeError: Cannot read properties of null (reading ‘getAttribute’)
    at HTMLDocument.<anonymous> (gtm4wp-woocommerce-enhanced.js?ver=1.16.2.1666360556:734:48)

    This is where it happens:

    if ( ( ‘undefined’ == typeof dom_productdata.getAttribute( ‘data-gtm4wp_product_id’ ) ) || ( ” == dom_productdata.getAttribute( ‘data-gtm4wp_product_id’ ) ) ) {
    return true;
    }

    Can not understand what is wrong… Any advice is very appreciated!

    The page I need help with: [log in to see the link]

The topic ‘select_item JS Uncut Type Error’ is closed to new replies.