);
diff --git a/app/_utils/analytics/client.ts b/app/_utils/analytics/client.ts
index 2491e55..fb2cc53 100644
--- a/app/_utils/analytics/client.ts
+++ b/app/_utils/analytics/client.ts
@@ -12,18 +12,12 @@ export const rejectCookies = (): void =>
window.clarity?.("consent", false);
};
-export const dismissCookies = (): void =>
-{
- setCookie("CC", "", 1209600); // 14 days
-};
-
-export const getCookieChoice = (): "accepted" | "rejected" | "acknowledged" | "none" =>
+export const getCookieChoice = (): "accepted" | "rejected" | "none" =>
{
switch (getCookie("CC"))
{
case "1": return "accepted";
case "0": return "rejected";
- case "": return "acknowledged";
default: return "none";
}
};
diff --git a/app/_utils/analytics/server.ts b/app/_utils/analytics/server.ts
index ec79db2..f7d548b 100644
--- a/app/_utils/analytics/server.ts
+++ b/app/_utils/analytics/server.ts
@@ -9,13 +9,3 @@ export const analyticsEnabled = (): boolean =>
unstable_noStore();
return !!process.env.CLARITY_ID;
};
-
-/**
- * Check if Clarity requires explicit consent
- * @returns true if Clarity requires explicit consent
- */
-export const requireExplicitConsent = (): boolean =>
-{
- unstable_noStore();
- return process.env.CLARITY_CONSENT === "1";
-};
diff --git a/app/attribution/page.tsx b/app/attribution/page.tsx
index bdc71c0..c26814c 100644
--- a/app/attribution/page.tsx
+++ b/app/attribution/page.tsx
@@ -3,7 +3,7 @@ import Button from "@/_components/Button";
import RevokeConsentButton from "@/_components/RevokeConsentButton";
import { canonicalName, getTitle } from "@/_data/metadata";
import ThirdPartyAttribution from "@/_data/ThirdPartyAttributiont";
-import { analyticsEnabled, requireExplicitConsent } from "@/_utils/analytics/server";
+import { analyticsEnabled } from "@/_utils/analytics/server";
import { ArrowLeft24Regular, ArrowRight24Regular } from "@fluentui/react-icons";
import { Metadata } from "next";
import { unstable_noStore } from "next/cache";
@@ -45,17 +45,15 @@ const AttributionPage: React.FC = () => (
If the "Do Not Track" option is enabled in your browser,
the website will not execute any tracking code.
- { requireExplicitConsent() &&
-
- If you previously gave your consent to use cookies,
- you can revoke it by clicking "Revoke my consent" button on this page below
- (the button is available only if the consent was given).
- Recorded data will be deleted after 30-day retention period.
-
- }
+
+ If you previously gave your consent to use cookies,
+ you can revoke it by clicking "Revoke my consent" button on this page below
+ (the button is available only if the consent was given).
+ Recorded data will be deleted after 30-day retention period.
+
- { requireExplicitConsent() && }
+
}>
diff --git a/app/layout.tsx b/app/layout.tsx
index 2537e77..50b947f 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -5,7 +5,7 @@ import { PropsWithChildren } from "react";
import CookieBanner from "./_components/CookieBanner";
import Footer from "./_components/Footer";
import Header from "./_components/Header";
-import { analyticsEnabled, requireExplicitConsent } from "./_utils/analytics/server";
+import { analyticsEnabled } from "./_utils/analytics/server";
import fonts from "./fonts";
import "./_styles/globals.scss";
@@ -28,7 +28,7 @@ export default function RootLayout(props: PropsWithChildren)
}
{ analyticsEnabled() &&
-
+
}