How to exclude cookies from firing using standard Shopify implementation?

7 0 1

I'm using the regular Shopify Plan. I've inserted the pixel ID's of both Facebook and Google Analytics. As part of GPDR regulations visitors need to be able to opt-out from cookies, which subsequently need to stop firing. How can I prevent cookies from firing/measuring with the standard Shopify set-up?