A blog about technology, programming, and more.
This site uses PostHog for analytics tracking. The integration is configured to track:
- Page views: Automatic tracking on initial page load and client-side navigation
- Internal link clicks: Custom events when users click internal links
- Navigation events: Back/forward navigation and programmatic routing
- Project ID:
phc_NqiGUIXWaL0Bl2nE3UI34zpJLlOd7k60JyOSgHq3VWc - API Host:
https://eu.i.posthog.com - Person Profiles: Identified only
- Debug Mode: Disabled by default (set
debug: trueinsrc/components/posthog.astroto enable)
-
Automatic Page View Tracking: Tracks page views on:
- Initial page load
- Browser back/forward navigation
- Programmatic navigation (pushState/replaceState)
- Internal link clicks
- Page visibility changes
-
Enhanced Data: Each page view includes:
- Current URL and pathname
- Page title
- Referrer information
- Host, search parameters, and hash
-
Custom Events: Additional tracking for:
- Internal link clicks with link text and destination
- Navigation patterns
To debug PostHog tracking:
- Enable debug mode by setting
debug: truein the PostHog initialization - Open browser developer tools and check the console for
[PostHog Debug]messages - Verify events are being sent to PostHog dashboard
npm install
npm run devnpm run build