1
0
mirror of https://github.com/XFox111/my-website.git synced 2026-04-22 07:28:01 +03:00

feat!: remove Clarity implicit consent option (EU compliance)

This commit is contained in:
2025-09-01 19:16:55 +00:00
parent ac7a3e2213
commit 02bccde8d6
7 changed files with 25 additions and 65 deletions
+8 -10
View File
@@ -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.
</p>
{ requireExplicitConsent() &&
<p>
If you previously gave your consent to use cookies,
you can revoke it by clicking &quot;Revoke my consent&quot; 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.
</p>
}
<p>
If you previously gave your consent to use cookies,
you can revoke it by clicking &quot;Revoke my consent&quot; 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.
</p>
<div className={ cls.buttonRow }>
{ requireExplicitConsent() && <RevokeConsentButton /> }
<RevokeConsentButton />
<Button appearance="secondary"
href="https://learn.microsoft.com/clarity/faq#privacy" target="_blank"
iconAfter={ <ArrowRight24Regular /> }>