• Resolved bibberle

    (@bibberle)


    Hello,

    due to GDPR I need to block the javascript file (which sets a cookie) until the user does an optin using a third party cookie consent plugin.

    Is it possible to dequeue the js file included in class-hubwoo-public.php in line 73 (wp_enqueue_script( ‘hs-script-loader’, ‘//js.hs-scripts.com/’ . $portal_id . ‘.js’, array( ‘jquery’ ), WC_VERSION, true );) and put that JS file include into my cookie plugin? So that it gets loaded right after the user accepts cookies? Or might this break things?

    I would really appreciate an answer, Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author MakeWebBetter

    (@makewebbetter)

    Hi,

    You can add this on your end but if the script will not load then tracking will be stopped on your site, and you have to make this change every time whenever a new version is released.

    Please feel free to reach out in case of any other queries.

    Thanks,

Viewing 1 replies (of 1 total)

The topic ‘Block Script Enqueue until Cookie consent’ is closed to new replies.