• Resolved ricardoaraujo330

    (@ricardoaraujo330)


    Hi everyone,

    I’m debugging an issue that I have on my checkout when the user doesn’t accept all cookies.

    One of the possible issues that came up in my mind is that some cookies have set my domain as Script URL pattern and that could be blocking a specific js library to run on checkout.

    Anyway, this is the context, my question is just this one:
    What should be the Script URL pattern to block is a user rejects mailchimp cookies like:

    mailchimp_user_email

    mailchimp_cart_previous_email

    mailchimp_cart_current_email

    mailchimp_campaign_id

    mailchimp_email_id

    Thank you

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support khungate

    (@khungate)

    Hello,

    Regarding your query on setting script URL patterns for Mailchimp cookies in the WooCommerce plugin, the plugin uses cookies to track cart data. If you need to disable these cookies, there’s a function available in the plugin to control this.

    You can implement a custom function (custom_cookie_callback_function) in your site’s code to manage cookie usage. Disabling cookies, however, will impact abandoned cart Automations for guest customers. Logged-in users will not be affected by this change.

    For detailed instructions and code examples, please refer to the Mailchimp GitHub Wiki page: Enable or Disable Cookie Filter.

    I hope this helps resolve your issue!

    Thread Starter ricardoaraujo330

    (@ricardoaraujo330)

    Hi,

    Thank you for your answer. I don’t need to disable cookies, just need to make sure I’m using the correct url pattern to block cookies for users that choose not to accept them.

    Thank you

    Plugin Author ryanhungate

    (@ryanhungate)

    @ricardoaraujo330 A URL pattern isn’t really the way to accomplish what you’re trying to do here. That script gets loaded to help with various features, but you have the option to disable the cookie per user using this function that we have referenced above. The logic extends into the script through the PHP code to disable those cookies.

    If this is a bit outside of what you are comfortable doing, I would suggest getting a developer to assist with your store to make sure things are working as expected. If you have questions about how the filter works we can do our best to help of course!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Script URL pattern for Mailchimp Cookies’ is closed to new replies.