• Resolved pstidsen

    (@pstidsen)


    Hi there,

    I am using WP Rocket to optimize JavaScript execution. It works perfect untill WooCommerce Pixel Manager by woopt is activated. When I do that, the file /plugins/woocommerce-google-adwords-conversion-tracking-tag/js/public/wooptpm.js is causing that jQuery.js and wooptpm.js is render blocking. How can I make wooptpm.js to be loaded defered?

    Best Regards,
    Peter B. Stidsen

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author alekv

    (@alekv)

    Hi Amir

    WP Rocket’s JavaScript “optimization” feature breaks the tracking scripts and prevents them from working properly. I had far too many support requests because of that.

    That’s why I’ve built in a function which disables WP Rocket’s JavaScript “optimization” feature for all the tracking scripts of my plugin, using WP Rocket’s filter that is meant exactly for such a case.

    Unfortunately you can’t have both, a perfectly working tracking solution and “optimized” JavaScripts the way WP Rocket does it.

    Regards
    Aleksandar

    Thread Starter pstidsen

    (@pstidsen)

    Hi Aleksandar,

    I was afraid that was the answer. However, isn’t it possible for you to make the tracking scripts loaded defered? In that way it won’t pop up in Google PageSpeed Insights.

    Best Regards,
    Peter B. Stidsen

    Plugin Author alekv

    (@alekv)

    No. There’s a reason why Google and other pixel providers have specified loading the scripts the way they did. I am simply following that specification.

    It is really the best way to properly track the traffic, which is, if done correctly, worth more than a few dozen milliseconds of load time.

    Thread Starter pstidsen

    (@pstidsen)

    Thanks for the answer! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wooptpm.js is render blocking’ is closed to new replies.