Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
📝 Update cookie policy (#2312)
Luke Vellac05e05ab41f6
diff --git a/apps/landing/src/app/[locale]/(main)/cookie-policy/page.tsx b/apps/landing/src/app/[locale]/(main)/cookie-policy/page.tsxindex ea469e621..943642e20 100644--- a/apps/landing/src/app/[locale]/(main)/cookie-policy/page.tsx+++ b/apps/landing/src/app/[locale]/(main)/cookie-policy/page.tsx@@ -2,7 +2,7 @@ export default function CookiePolicy() {return (<div className="prose mx-auto max-w-3xl"><h1>Cookie Policy</h1>- <p>Last updated: 19 April 2023</p>+ <p>Last updated: 4 April 2026</p><p>This Policy explains how we use cookies and other similar technologieson our website, and your options to control them.@@ -17,16 +17,32 @@ export default function CookiePolicy() {</p><h2>How we use cookies</h2>+ <p>We use the following types of cookies on our website:</p>+ <h3>Essential cookies</h3><p>- We use only essential cookies on our website, which are necessary for- our website to function properly and enable you to access secure areas- of the website.+ These cookies are necessary for our website to function properly and+ enable you to access secure areas of the website. They cannot be+ disabled.+ </p>+ <h3>Analytics cookies</h3>+ <p>+ We use PostHog to collect anonymous analytics data that helps us+ understand how visitors use our website and identify areas for+ improvement. PostHog sets cookies to distinguish between users and+ sessions. The data collected includes pages visited, events triggered,+ device type, and IP address (used for approximate geolocation only).+ This information is stored on PostHog's EU-based servers and is not+ used for advertising or shared with third parties.</p><h2>Your options</h2><p>Most web browsers allow you to control cookies through their settings- preferences. However, please be aware that disabling essential cookies+ preferences. You can also opt out of analytics cookies by enabling the{" "}+ <a href="https://globalprivacycontrol.org/" rel="noopener noreferrer">+ Global Privacy Control+ </a>{" "}+ signal in your browser. Please be aware that disabling essential cookiesmay prevent you from accessing certain parts of our website.</p>diff --git a/packages/posthog/src/client.tsx b/packages/posthog/src/client.tsxindex af534971e..27d6fbfeb 100644--- a/packages/posthog/src/client.tsx+++ b/packages/posthog/src/client.tsx@@ -5,6 +5,7 @@ import type React from "react";export { useFeatureFlagEnabled, usePostHog } from "posthog-js/react";import { PostHogProvider as BasePostHogProvider } from "posthog-js/react";+import { isGlobalPrivacyControlEnabled } from "./utils";if (typeof window !== "undefined" && process.env.NEXT_PUBLIC_POSTHOG_API_KEY) {posthog.init(process.env.NEXT_PUBLIC_POSTHOG_API_KEY, {@@ -16,7 +17,7 @@ if (typeof window !== "undefined" && process.env.NEXT_PUBLIC_POSTHOG_API_KEY) {enable_heatmaps: false,persistence: "cookie",autocapture: false,- opt_out_capturing_by_default: false,+ opt_out_capturing_by_default: isGlobalPrivacyControlEnabled(),cross_subdomain_cookie: true,});}diff --git a/packages/posthog/src/utils.ts b/packages/posthog/src/utils.tsindex f67302cbe..5938da4c8 100644--- a/packages/posthog/src/utils.ts+++ b/packages/posthog/src/utils.ts@@ -23,3 +23,15 @@ export function getPosthogBootstrapCookie(bootstrapData: {domain,};}++type NavigatorWithGlobalPrivacyControl = Navigator & {+ globalPrivacyControl?: boolean;+};++export function isGlobalPrivacyControlEnabled() {+ return (+ typeof navigator !== "undefined" &&+ (navigator as NavigatorWithGlobalPrivacyControl).globalPrivacyControl ===+ true+ );+}