mirror of
https://github.com/audacity/audacity.github.io.git
synced 2026-05-30 20:47:36 -05:00
feat: inject Clarity when user accepts cookie consent
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { injectClarity } from "./clarityTracking.js";
|
||||
|
||||
const cookieStorage = {
|
||||
getItem: (key) => {
|
||||
const cookies = document.cookie
|
||||
@@ -147,6 +149,7 @@ window.addEventListener("load", function () {
|
||||
if (typeof _paq !== "undefined") {
|
||||
_paq.push(["setCookieConsentGiven"]);
|
||||
}
|
||||
injectClarity();
|
||||
};
|
||||
|
||||
const rejectCookie = (event) => {
|
||||
|
||||
Reference in New Issue
Block a user