'use client'; import { useEffect } from 'react'; import { usePathname, useSearchParams } from 'next/navigation'; import { getAppServices } from '@/lib/services/create-services'; import Script from 'next/script'; /** * AnalyticsProvider Component * * Automatically tracks pageviews on client-side route changes. * This component should be placed inside your layout to handle navigation events. * * @example * ```tsx * // In your layout.tsx * * *
*
{children}
*