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

refactor: moved analytics checks to a separate file

This commit is contained in:
2024-08-21 00:18:17 +00:00
parent 272049c71a
commit d7500e861c
4 changed files with 20 additions and 3 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import Package from "@/../package.json";
import { footerImage, nextjsLogo } from "@/_assets/illustrations";
import { analyticsEnabled } from "@/_utils/analytics/server";
import Image from "next/image";
import Link from "next/link";
import React from "react";
@@ -14,7 +15,7 @@ const Footer: React.FC = () => (
<p>
This site was created with help of some third-party tools and services.
</p>
{ process.env.CLARITY_ID &&
{ analyticsEnabled() &&
<p>
This site is using Microsoft Clarity for analytics purposes.<br aria-hidden />
By using this site you agree that we and Microsoft can collect and use this data.