Problem with click event listener on product links
-
Hi,
I have a complicated bug.
Problem:
If you visit a product from the product list / archive view and go back the link click on that product doesn′t do anything. This only happens on mobile devices, I tested Safari and Chrome on ios.My testing
The error only occurs on real mobile devices (dev tools responsive mode everything works fine) and with browser caching enabled. A GTM Container has to be loaded either via gtm4wp or borlabs. I think the event listener causing problems is added in gtm4wp-woocommerce-enhanced.js?ver=1.13.1 at the part with the comment
// track clicks in product listsWhen deactivating this event listener via the safari dev tools with a real mobile device connected the link works fine on the second click. I am stuck at this point and hope you can help me. I can provide access to a stagging site where the error can be tested.
Plugins / Themes
This occurs with latest version of oceanwp / twenty twenty one. Only Plugins active were gtm4wp and woocommerce, both newest version.At the beging of my debugging I thought this is a special error from my setup but on the staging site I narrowed it down to only gtm4wp and woocommerce active and the standard theme. Also tested it on another site. Therefore I think this might be an issue wich affects multiple sites but goes easily unnoticed because you can′t test every possible device/browser etc. combination.
I am curious what you will find out.
Thanks!
Jakob
- The topic ‘Problem with click event listener on product links’ is closed to new replies.