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

    (@alekv)

    Yes.

    Make sure you’re using WP Rocket version 3.9 or higher.

    Hey @alekv

    It seems this plugin is not compatible with wp rocket in the section of “delay js”

    So, when the delay js of wp rocket is enabled, none of the js are being delayed. But when we disable the woopt plugin, all js are being delayed.

    The wp rocket team also confirmed this.

    Do you have any solution for this?

    Thanks

    Plugin Author alekv

    (@alekv)

    Hi Amir

    WP Rocket’s “delay js” 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 “delay js” 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 “delayed JavaScripts”.

    Regards
    Aleksandar

    Hey Aleksander, thanks a lot for this.

    I want to try something, I want to see if I can disable your code which is shutting off wp rocket delay js, and then exclude google conversion tracking from wp rocket exclusion field.

    By any chance, do you know which JS is responsible for google conversion tracking?

    https://gtmetrix.com/reports/rats.army/2NKh19ia/

    This is my current status, not sure which one I should exclude.

    Thanks

    Plugin Author alekv

    (@alekv)

    and then exclude google conversion tracking from wp rocket exclusion field.

    Essentially that’s what my plugin is doing.

    By any chance, do you know which JS is responsible for google conversion tracking?

    All the scripts that are loaded by my plugin plus jQuery.

    “Essentially that’s what my plugin is doing.”

    I guess your plugin is disabling the delaying js function completely, so a lot of other js that I want to delay, but not possible, that’s why I’m curious to test this method too to see the difference.

    “All the scripts that are loaded by my plugin plus jQuery.”

    Perfect, so these 2 seem related to your plugin. Just can you also please tell me the file that you used wp rocket filter, so I can commented it out to test?

    /wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/js/public/wooptpm.js

    /wp-content/plugins/woocommerce-google-adwords-conversion-tracking-tag/js/public/google-ads.js`

    Really appreciate your time, thank you : )

    Plugin Author alekv

    (@alekv)

    I guess your plugin is disabling the delaying js function completely

    No. Just for the scripts necessary in the script chain for the plugin.

    Just can you also please tell me the file that you used wp rocket filter, so I can commented it out to test?

    It’s all in the code.

    Ok, I tested and confirmed what you say. However, Right now there are 31 JS that are not delaying. So, all of these are necessary for calculating google conversion tracking? (from tiktok, facebook, zdassets and google)

    For example zdassets is for live chat plugin.

    https://gtmetrix.com/reports/rats.army/mtrZvcCL/

    Thanks

    Plugin Author alekv

    (@alekv)

    Where do you see zdassets on that report?

    On the waterfall section:

    View post on imgur.com

    Plugin Author alekv

    (@alekv)

    I see. But the only thing I can tell you is that my plugin only excludes its own scripts and jQuery from the WP Rocket optimization process using WP Rockets filter. I’m not sure how that’s affecting the zdassets scripts, if at all.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Is it compatible with WP Rocket?’ is closed to new replies.