From f903a5c138b68021976f9978253a62cd51f46b66 Mon Sep 17 00:00:00 2001 From: Korbs Date: Wed, 10 Jul 2024 17:18:41 -0400 Subject: [PATCH] Prepare to add Telemtry tracking --- src/components/global/Head.astro | 19 +++++++++++- src/components/global/Sidebar.astro | 12 ++++---- src/pages/telemtry.astro | 45 +++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 6 deletions(-) create mode 100644 src/pages/telemtry.astro diff --git a/src/components/global/Head.astro b/src/components/global/Head.astro index 0d66d85..502df74 100644 --- a/src/components/global/Head.astro +++ b/src/components/global/Head.astro @@ -45,6 +45,20 @@ if (Astro.url.href.match('watch')) { var IsVideo = false } +// Track Events + +// TODO +// Before re-enabling, create an "opt-in" solution +// first for the end-user, as asking for consent +// would be ideal. Astro Cookies can be used to +// toggle the option, make sure end-users are +// opted-out by default for privacy purposes. + +// import { OpenpanelSdk } from '@openpanel/sdk'; +// const op = new OpenpanelSdk({ +// clientId: 'b4c27f56-18f5-4d66-bb62-cbf7f7161812', +// clientSecret: 'sec_107558407af59a591b50', +// }); --- @@ -80,4 +94,7 @@ if (Astro.url.href.match('watch')) { - \ No newline at end of file + + + \ No newline at end of file diff --git a/src/components/global/Sidebar.astro b/src/components/global/Sidebar.astro index 104aed3..087989c 100644 --- a/src/components/global/Sidebar.astro +++ b/src/components/global/Sidebar.astro @@ -21,9 +21,10 @@ import { PizzaSlice, Treadmill, PeaceHand, -InfoCircle, -HelpCircle, -Server + InfoCircle, + HelpCircle, + Server, + CurveArray } from '@iconoir/vue' // i18n @@ -63,8 +64,9 @@ import i18next, { t } from "i18next"