From 2779b3300144f1d779647598e4eec1c41fc9f403 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Mon, 2 Jun 2025 13:23:40 +1000 Subject: [PATCH] feat: revoke script consent --- playground/pages/features/cookie-consent.vue | 33 ++++++-- .../composables/useScriptTriggerConsent.ts | 75 ++++++++++++------- 2 files changed, 72 insertions(+), 36 deletions(-) diff --git a/playground/pages/features/cookie-consent.vue b/playground/pages/features/cookie-consent.vue index 17ec3d2f..fb9639dc 100644 --- a/playground/pages/features/cookie-consent.vue +++ b/playground/pages/features/cookie-consent.vue @@ -8,6 +8,10 @@ function acceptCookies() { scriptConsent.accept() showCookieBanner.value = false } +function revokeCookies() { + scriptConsent.revoke() + showCookieBanner.value = true +} useScriptGoogleTagManager({ id: 'GTM-MWW974PF', scriptOptions: { @@ -18,16 +22,29 @@ useScriptGoogleTagManager({