forked from transitive-bullshit/nextjs-notion-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Enhanced posthog tracking #1
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…move it from the UI The GitHubShareButton is commented out to prevent it from rendering, possibly due to a decision to remove or replace it with another feature. feat(_app.tsx): integrate Flowise Chatbot for enhanced user interaction The Flowise Chatbot is added to the application using the Next.js Script component. This integration provides users with an interactive chatbot experience, enhancing user engagement and support. chore(site.config.ts): update site configuration to reflect new personal branding The site configuration is updated to reflect the new personal branding of Abdullah Abid. This includes changes to the root Notion page ID, site name, domain, author, and social media usernames. Additionally, the navigation style is switched to custom with links to 'About' and 'Contact' pages, aligning with the updated personal branding strategy.
Move the import of the Script component to maintain a consistent and logical order of imports, grouping similar imports together. This change improves code readability and organization, making it easier for developers to locate and manage dependencies.
Add the sharp library to the dependencies to enable image processing capabilities. This addition allows for efficient image transformations, which can be useful for optimizing images for web applications.
Add @vercel/analytics and @vercel/speed-insights packages to the dependencies in package.json. Import and use Analytics and SpeedInsights components in _app.tsx to enhance application monitoring and performance tracking. This integration provides better insights into user behavior and application speed, allowing for data-driven improvements.
Add `@vercel/analytics` and `@vercel/speed-insights` to the lock file to enhance analytics and performance insights capabilities. Include `sharp` for image processing improvements. These additions aim to enhance the application's analytics, performance monitoring, and image processing capabilities, providing more robust and efficient features.
Remove unnecessary semicolons and switch to single quotes for string literals to maintain a consistent coding style across the project. This enhances readability and aligns with the project's style guidelines.
…s, TypeScript, and ESLint - Upgrade React and ReactDOM to 19.1.1 for latest features and improvements - Update Next.js from 15.0.3 to 15.5.3 to get bug fixes and new features - Upgrade TypeScript to 5.9.2 and related ESLint plugins/configs for newer typings and linting rules - Update numerous development dependencies including eslint, @typescript-eslint packages, prettier, and others - Include new or updated packages for better support and compatibility - Reflect these changes in the package-lock.json to lock versions and ensure consistent installs These updates improve development experience, fix known issues, enhance compatibility with modern tools, and keep the project aligned with current ecosystem standards. chore(package-lock.json): update dependencies and regenerate lockfile The package-lock.json was updated to reflect changes in dependencies. This includes upgrades and addition of new dependencies with updated versions, resolved URLs, integrity hashes, licenses, funding information, engines requirements, and dependency trees. These updates ensure that installed packages are consistent, secure, and compatible with the current environment. Regenerating the lockfile helps maintain reproducible builds and keeps the dependency graph up to date. chore: update package-lock.json with multiple dependency upgrades and metadata enhancements Upgrade various dependencies to their latest versions to incorporate bug fixes, performance improvements, and new features. Added missing license fields and updated funding URLs and engine requirements to ensure compliance and better maintenance of dependencies. This update strengthens security and compatibility across the project. build: update numerous dependencies in package-lock.json to latest versions The lockfile is updated to upgrade many packages including react, react-dom, prettier, typescript, scheduler, and various utility libraries to newer versions. This refreshes licenses and dependency trees, ensuring compatibility and security improvements. The update helps maintain the project up-to-date with latest ecosystem releases and bug fixes while potentially addressing licensing and peer dependency issues.
- Add core analytics utility with type-safe event tracking in /lib/analytics.ts - Track enhanced page views with metadata (title, type, reading time, device info) - Track social media link clicks, theme toggles, content engagement (scroll, time) - Track blog post views, reading completions, link clicks, and page leave events - Initialize scroll depth and time-on-page tracking within NotionPage component - Add social click tracking to Footer and PageSocial components - Implement theme toggle tracking in Footer component - Add analytics debug and test utilities in /lib/analytics-debug.ts - Integrate analytics tracking on app start and route changes in _app.tsx - Provide extensive analytics documentation in ANALYTICS.md covering tracking events, testing, and privacy Implementing this analytics system provides valuable insights into user behavior, content engagement, and social interactions, enabling data-driven improvements while respecting user privacy on the personal website abd.dev.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Notion Test Page ID