Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Posthog #960

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

Introduce Posthog #960

wants to merge 17 commits into from

Conversation

svemat01
Copy link
Member

No description provided.

Copy link

cloudflare-workers-and-pages bot commented Feb 19, 2025

Deploying ens-app-v3 with  Cloudflare Pages  Cloudflare Pages

Latest commit: b21059a
Status: ✅  Deploy successful!
Preview URL: https://18e29fd4.ens-app-v3.pages.dev
Branch Preview URL: https://introduce-posthog.ens-app-v3.pages.dev

View logs

@svemat01 svemat01 force-pushed the introduce-posthog branch 2 times, most recently from b9556cf to 674d307 Compare February 24, 2025 08:46
@svemat01 svemat01 marked this pull request as ready for review March 11, 2025 12:58
@svemat01 svemat01 requested a review from sugh01 as a code owner March 11, 2025 12:58
svemat01 added 16 commits March 11, 2025 14:02
Introduces comprehensive analytics tracking using PostHog across the application:
- Added PostHog configuration and provider
- Created type-safe event tracking utility
- Implemented analytics events for key user interactions in registration, import, search, and wallet flows
- Added environment variables for PostHog configuration
- Removed legacy event tracking hooks
- Add chain ID registration to PostHog tracking
- Enhance user identification with initial address property
- Modify event name for DotBox registration tracking
- Add duration type to registration event tracking
- Modify console listener regex to match PostHog event tracking
- Update event name assertion from 'search_selected_eth' to 'search:select'
- Import EventDefs from analytics events utility
- Standardize event tracking names across import, registration, and box registration specs
- Update console listener regex to match PostHog event tracking
- Simplify and normalize event names (e.g., 'search:select', 'register:pricing', 'wallet:open')
- Add production detection function to conditionally log metrics events
- Update PostHog provider and event tracking to use production detection
- Modify console logging to use consistent '[Metrics]' prefix
- Simplify event logging across different components
Update CSP to allow scripts from PostHog analytics domain, complementing recent analytics integration
Update registration test to allow for gas percentage fluctuations by using a more flexible regex match
- Change PostHog host to custom domain
- Update Content Security Policy to allow scripts from new PostHog host
- Modify default PostHog API host to EU endpoint
- Implement cookie consent system with localStorage persistence
- Create CookieConsentBanner component for user consent
- Add cookie consent settings to Privacy section
- Configure PostHog persistence based on user consent
Optimize pattern matching in PrivacySection to use `.otherwise()` for handling undecided cookie consent state
Remove unnecessary default export from CookieConsentBanner component to maintain consistency with existing import patterns
@svemat01 svemat01 force-pushed the introduce-posthog branch from f83f775 to 9c54e15 Compare March 11, 2025 17:23
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