• Hi,

    I am using this plugin for some time on my other website. And it works perfect.
    I am finishing my other site, and when i activated the plugin it behaves strange.

    This only happens on Shop page (Product Archive) when i click any product, nothing happens for 1-3 seconds. No loading, no error in console. It is like there is delay in the click. If i click a Buy Button on any of my Landing pages, it goes straight to the product without any waiting.

    I already eliminated the problem by turning off all plugins and letting only WooCommerce and GTM plugin active. So there is no other possible conflict. (Theme including)

    Can this be caused because this site in development is not running on HTTPS? ??

    EDIT: When i disable “Track enhanced e-commerce” the lag goes away. But i need the e-comm tracking.

    EDIT: I solved it. I disabled “Cart content in data layer” and now it is fast as it should be ??

    Thank you

    • This topic was modified 3 years, 8 months ago by 3p1demicz.
    • This topic was modified 3 years, 8 months ago by 3p1demicz.
    • This topic was modified 3 years, 8 months ago by 3p1demicz.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter 3p1demicz

    (@3p1demicz)

    Hi,

    Sadly it was probably just some buffer and the bug is not solved by deactivating the “cart content in data layer”.

    I tried everything i believe. When i leave only the datalayer active (without putting the actual code of the GTM to the website) and use the datalayer to load other scripts (TikTok Pixel, FB purchase event). It works smooth, loads all data, click, add to cart, purchase etc etc.

    But when the actual Google “pixel” is activated this “lag” starts to happen. And it only happens on the Shop page (Product archive). If i click any Buy button (link to product page) anywhere else on the page, it does not happen. If i click a “Prodcut loop” like for example “You may also like upsells on product / page” it does the same (because it is the same WooCOmmerce loop).

    This “Lag” can take up to 4 seconds, before the page actually starts loading. It is like if there was a CSS wall or something that purposely delays the click.

    If the GTM code is active and I disable the “Track enhanced e-commerce” completely, it goes away. But so does my tracking :D.

    Any suggestion what can be causing this from the devs?

    the shop / product archive page

    Only last thing i can think about is the site being in HTTP instead of HTTPS.

    Thank you.

    EDIT: i have a “patch”. If i use plugin, to selectively disable some JS on specific pages and go ahead and disable “gtm4wp-woocommerce-enhanced –
    /wp-content/plugins/duracelltomi-google-tag-manager/js/gtm4wp-woocommerce-enhanced.js” on the shop page. This lag goes away.

    It is not the best solution, as any google tag thing is not being traced on shop page, but at least the product loads fast, which is more important.

    • This reply was modified 3 years, 8 months ago by 3p1demicz.
    • This reply was modified 3 years, 8 months ago by 3p1demicz.
    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Could you also test this one: restore the original code of the plugin and change the GTM container code to GTM-XXXXX

    What happens in this case?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Weird “lag” when clicking on Product in shop page’ is closed to new replies.