Skip to content

Setup PostHog and Integrate with Cookie Banner Component#2557

Merged
mrkaye97 merged 2 commits intohatchet-dev:mainfrom
undrash:analytics/posthog-essentials
Nov 28, 2025
Merged

Setup PostHog and Integrate with Cookie Banner Component#2557
mrkaye97 merged 2 commits intohatchet-dev:mainfrom
undrash:analytics/posthog-essentials

Conversation

@undrash
Copy link
Contributor

@undrash undrash commented Nov 23, 2025

Description

I've set up PostHog in the docs project and integrated it with the cookie banner component.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation change (pure documentation change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking changes to code which doesn't change any behaviour)
  • CI (any automation pipeline changes)
  • Chore (changes which are not directly related to any business logic)
  • Test changes (add, refactor, improve or change a test)
  • This change requires a documentation update

What's Changed

  • Implemented Posthog provider
  • Created a consent context for consent functionality
  • Updated cookie banner

NOTE: On the cookie banner update

The formatting diffs are because of your .prettierrc file wasn't applied to the cookie banner file. I understand that makes the diff harder to read, so here's a summary of what actually changed:

  • Small fix: The accept and decline functions got wrapped in useCallback functions
  • Feature: We're emitting Events with window.dispatchEvent to notify the ConsentContext when consent changes
  • Small cleanups like useEffect deps, removed unused code

@vercel
Copy link

vercel bot commented Nov 23, 2025

@undrash is attempting to deploy a commit to the Hatchet Team on Vercel.

A member of the Team first needs to authorize it.

@undrash undrash force-pushed the analytics/posthog-essentials branch from 91af997 to 3abfb09 Compare November 28, 2025 19:52
@mrkaye97 mrkaye97 merged commit 00fda4c into hatchet-dev:main Nov 28, 2025
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants