pressidium / pressidium-cookie-consent

🍪 Lightweight, user-friendly and customizable cookie consent banner to help you comply with the EU GDPR cookie law and CCPA regulations.
https://wordpress.org/plugins/pressidium-cookie-consent/
GNU General Public License v2.0
43 stars 3 forks source link

Regex presets to block scripts #58

Open over-engineer opened 3 months ago

over-engineer commented 3 months ago

One potential feature to consider is to include presets for commonly used regular expressions (for Google Analytics, Google Tag Manager, Facebook Pixel, etc.)

We could also include presets formatted to match a domain (with or without www.), a subdomain, etc.

For example,

Main domain regex:
^(?:https?:)?\/\/(?:www\.)?website\.com

Subdomain regex:
^(?:https?:)?\/\/(?:www\.)?sub\.website\.com

Example:
^(?:https?:)?\/\/(?:www\.)?google-analytics\.com

(originally suggested by @nikodemsky on the WordPress.org support forum)