Skip to content

Commit

Permalink
Add note about cookieless visitor tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
benvinegar committed Oct 21, 2024
1 parent ff2bd67 commit 0f9e960
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/analytics/collect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { UAParser } from "ua-parser-js";

import type { RequestInit } from "@cloudflare/workers-types";

// Cookieless visitor/session tracking
// Uses the approach described here: https://notes.normally.com/cookieless-unique-visitor-counts/

function checkVisitorSession(ifModifiedSince: string | null): {
newVisitor: boolean;
newSession: boolean;
Expand Down

0 comments on commit 0f9e960

Please sign in to comment.