Skip to content

Conversation

@ThomasCode92
Copy link
Owner

@ThomasCode92 ThomasCode92 commented Jul 17, 2025

🚀 Add PostHog for Analytics Tracking

This PR introduces PostHog to enable analytics across the application.
A quick overview of all activities can be found here.

🔧 Implementation Details

  • 🧩 PostHog Provider
    The entire app is now wrapped with PostHogProvider, allowing PostHog to automatically capture key events out of the box.
  • 🙋‍♂️ User Identification
    A new UserIdentification component, inside the provider, identifies the users based on Clerk auth info.
    • 🔐 Currently, only the user's email address is used for identification.

📈 Why PostHog?

PostHog gives us powerful product analytics with:

  • Auto-captured events (clicks, pageviews, etc.)
  • User-level tracking
  • Easy future integration for custom events

This sets the groundwork for deeper insights into user behavior with minimal setup. Future enhancements can include richer user traits and custom event tracking.

@netlify
Copy link

netlify bot commented Jul 17, 2025

Deploy Preview for t4s-drive-tutorial ready!

Name Link
🔨 Latest commit 906c385
🔍 Latest deploy log https://app.netlify.com/projects/t4s-drive-tutorial/deploys/687898a9b360930008364e43
😎 Deploy Preview https://deploy-preview-10--t4s-drive-tutorial.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ThomasCode92 ThomasCode92 merged commit a713373 into main Jul 19, 2025
5 checks passed
@ThomasCode92 ThomasCode92 deleted the analytics branch July 19, 2025 17:46
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