Support » Plugin: Mailchimp for WooCommerce » Disable scripts from non shop pages

  • Resolved dav74

    (@dav74)


    Hello,
    To speed up our site I would like to disable the scripts from this plugin on our front end website pages, outside of the shop system,

    Theoretically I think this should not be a problem. Can you please confirm?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dav74

    (@dav74)

    The script I am talking about is: https://chimpstatic.com/mcjs-connected/js/users/ ………js

    Surely this is only needed on WooCommerce related pages and not on our general website pages and home page for example?

    Can you offer a snippet to disable this script on non woocommerce pages?

    • This reply was modified 6 months, 1 week ago by dav74.
    • This reply was modified 6 months, 1 week ago by dav74.
    Plugin Support khungate

    (@khungate)

    Hi there! Thanks for reaching out. If you’d like to disable the “chimpstatic” script you can find details around doing that here: https://github.com/mailchimp/mc-woocommerce/wiki/Include-Exclude-Mailchimp-Script.

    Let us know if you have any other questions.

    Thread Starter dav74

    (@dav74)

    Hello @khungate

    Many thanks for your reply and solution. Is this not something you can write into your plugin core files? Surely it is in the interest of everyone to only load your scripts where they are required and not on every page?

    Thanks for your thoughts.

    Plugin Support khungate

    (@khungate)

    Hi @dav74, at this time that’s not something that we have on our roadmap. The “chimpstatic script” is responsible for abandoned cart tracking, conversion tracking on campaigns/automations and triggering pop-ups to name a few. I suppose it could be a setting at some point to toggle on/off at some point, but doing so would disable some very helpful insights/features in Mailchimp.

    For now, we’d recommend taking the steps outlined in our Wiki if you’d like to disable the script.

    Thread Starter dav74

    (@dav74)

    Hi @khungate

    Thanks for the reply. Back to my original question, does your script really need to run on non-woocommerce pages in order for it to have full functionality? That’s basically the root of my question.

    If I could understand that, I can decide where we need to disable it.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.