Closed lukevella closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
app | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 10, 2024 2:53pm |
landing | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 10, 2024 2:53pm |
A new React component named PostHogPageView
has been introduced to facilitate page view tracking using PostHog within a Next.js application. This component utilizes hooks to access the current URL and triggers tracking events when the URL changes. Additionally, the PostHogPageView
component is integrated into the Providers
component. The package.json
for the PostHog package has been updated to include new development dependencies, and TypeScript configurations have been adjusted to enhance type safety and include the new component in the compilation context.
File | Change Summary |
---|---|
apps/web/src/app/posthog-page-view.tsx | Added new React component PostHogPageView for tracking page views with PostHog. |
apps/web/src/app/providers.tsx | Integrated <PostHogPageView /> into the Providers component under PostHogProvider . |
packages/posthog/package.json | Added @rallly/eslint-config and @rallly/tsconfig to devDependencies . |
packages/posthog/tsconfig.json | Expanded include array to include ../../apps/web/src/posthog-page-view.tsx . |
packages/tsconfig/base.json | Updated compilerOptions to include strictNullChecks: true for enhanced type safety. |
PostHogPageView
component.PostHogPageView
component.posthogApiHandler
, which could impact the overall tracking functionality that the PostHogPageView
component relies on.🐰 In the meadow, I hop with glee,
A new component for all to see!
Tracking pages with every view,
PostHog's magic, bright and true.
With types so safe, we leap and bound,
In our code, joy is found! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Chores