Streaming live at 10am (PST)

Ecommerce Buy Now Button Jquery.deffered exception

Hi - I am hitting a bug when user’s click the “buy now” ecommerce buttons. I saw that this could be a custom code issue, but the only custom code being triggered by these buttons is below and is running fine from what I can tell:

<script>
$(document).ready(function() {      
    $(document).on('click', '[data-gatrack]', function(e) {

        var $link = $(this);
        var commaSeperatedEventData = $link.data('gatrack');
        var eventParams = commaSeperatedEventData.split(',');

        if (!eventParams) { return; }

        eventCategory = eventParams[0]
        eventAction = eventParams[1]
        eventLabel = eventParams[2]

        gtag(
            'event',
            eventAction,
            {
                'event_category': eventCategory,
                'event_label': eventLabel
            }
        )
    });

});

$(document).on('click', '[data-reddittrack]', function(e) {
        var $link = $(this);
        var redEventParams = $link.data('reddittrack');
        
        console.log('here',redEventParams);

        if (!redEventParams) { return; }

        rdt('track',redEventParams);
    });
</script>

this the error:

not sure how to debug, any ideas would be appreciated! thank you :slight_smile: