Using jQuery to send events to google analytics, I am getting some strange results.
Works for this button as expected:
jQuery('button.navigation-back-button').on('click', function(event) {
console.log("button.navigation-back-button");
});
But exactly the same doesn't work for any other button I have tried:
jQuery('button.resources-drawer').on('click', function(event) {
console.log("button.resources-drawer");
});
Any idea what is going on there?
Thanks