• Resolved davidw09

    (@davidw09)


    Is there a way to delay the firing of scripts for 5 seconds we want to speed up our site and we think this will be a big help

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author PixelYourSite

    (@pixelyoursite)

    Hi,

    You can configure a global event with delay.

    You can’t delay the pixel completely and it’s not recommended to do so.

    Once you have the custom delayed event, you can use it for Custom Audiences or Custom Conversions.

    It would be great if this plugin had a delay feature since I believe it is affecting site performance.

    It is possible. I did it with a plugin called “perfmatters” (Bonus tip: A free plugin called Flying Scripts have this functionality aswell, however, I recommend perfmatters as it is a beast in and of itself).

    Install the plugin and activate it. Go to Settings > Perfmatters > Extras > Assets.

    Under Delay Javascript type in (if you have the pro version, adjust accordingly):

    wp-content/plugins/pixelyoursite-pro/dist/scripts/public.js

    This delays the loading of the PixelYourSite javascript and subsequent pixel scripts until user interaction (Mouse hover, scroll etc).

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is there a way to delay pixels from firing for 5 seconds’ is closed to new replies.