What problem does it solve?
Setting up and configuring analytics SDKs in modern web frameworks like Next.js can be complex, requiring careful placement of components, management of environment variables, and correct hook usage. This Skill provides a step-by-step guide for installing and configuring the @dotcms/analytics SDK.
Core Features & Use Cases
- Automated Page View Tracking: Easily set up automatic page view tracking on route changes in Next.js/React applications.
- Custom Event & Conversion Tracking: Implement manual tracking for specific user interactions, form submissions, media plays, and business conversions.
- Centralized Configuration: Establish a single source of truth for analytics settings, simplifying maintenance and ensuring consistency.
- Use Case: When you need to add comprehensive analytics to your Next.js e-commerce site, use this skill to install the
@dotcms/analytics SDK, configure automatic page view tracking, and implement custom event tracking for product views and purchase conversions.
Quick Start
Install the @dotcms/analytics SDK in my Next.js project and configure it for automatic page view tracking.