• Resolved biscuitier0

    (@itsaskew)


    Hi

    Thanks for the awesome plugin.

    I would really appreciate it if you could help me.

    There have been lots of purchases over the past 28 days but Analytics has only tracked one. To the best of my knowledge this has only become an issue since we moved to GA4, at least I never noticed it before then. I can’t figure out what the problem is at all.

    Thanks again in advance

    View post on imgur.com

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @itsaskew,

    There have been lots of purchases over the past 28 days but Analytics has only tracked one. To the best of my knowledge this has only become an issue since we moved to GA4, at least I never noticed it before then. I can’t figure out what the problem is at all.

    Thanks for getting in touch and sharing details of your issue!

    Taking a look at your website I can see that the loading of every Javascript file is being deferred which isn’t the default behaviour.

    This means that things aren’t loading in the right order and it’s causing problems with Google Analytics for WooCommerce along with a number of other plugins on your website.

    I’m not able to see what plugins you have installed but it seems likely you have a plugin that optimises Javascript but is doing so in a way that’s causing these problems. I’d recommend either disabling whichever optimisation plugin is doing that or adjusting its settings to stop it from deferring all scripts.

    Thread Starter biscuitier0

    (@itsaskew)

    Oh great. Thank you for your help with this. I think that it must be SG Optimizer which I have set to defer render-blocking JS. I have the option of excluding certain scripts with a dropdown selection available – I am not totally sure which ones I should exclude though …anything that mentions woocomerce? Perhaps I would be better off ditching SG Optimizer altogether?

    Plugin Support Sol J. a11n

    (@solstudioim)

    I am not totally sure which ones I should exclude though …anything that mentions woocomerce? Perhaps I would be better off ditching SG Optimizer altogether?

    You can either exclude products, cart, checkout pages following this guide: https://world.siteground.com/tutorials/wordpress/speed-optimizer/custom-filters/#Exclude_certain_URLs_from_being_cached

    Or you can also disable the SG Optimizer for the time being and see if the problem is resolved @itsaskew

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Analytics not tracking Ecommerce / Purchases’ is closed to new replies.