Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Installs and configures the @dotcms/analytics SDK in Next.js or React projects.
45% 100%+55 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 10 of 22 without it.
When debugging missing analytics payloads in Google Chrome DevTools Network tab, what specific API endpoint URL path should developers filter for to verify outgoing dotCMS analytics payloads?
Identifies /api/v1/analytics/content/event as network endpoint path
3 of 3 safety checks passed
This skill provides step-by-step instructions for installing and configuring the @dotcms/analytics SDK in the Next.js example project at /core/examples/nextjs.
The @dotcms/analytics SDK is dotCMS's official JavaScript library for tracking content-aware events and analytics. It provides:
CRITICAL: useContentAnalytics() ALWAYS requires config as a parameter. The hook does NOT use React Context.
<DotContentAnalytics /> - Auto Page View Tracker
useContentAnalytics(config) - Manual Tracking Hook
// 1. Create centralized config file (once)
// /src/config/analytics.config.js
export const analyticsConfig = {
Next to this one in the catalogue, plus more from the same author.