--- title: Analytics.Provider description: Provides a context for tracking page views and cart events to send as analytics data to Shopify. This component is integrated with the Customer Privacy API for consent management. The provider can also be used to connect third-party analytics services through its subscribe and publish system. The [`useAnalytics`](/docs/api/hydrogen/2024-04/hooks/useanalytics) hook provides access to the analytics provider context. api_version: 2026-04 api_name: hydrogen source_url: html: https://shopify.dev/docs/api/hydrogen/2024-10/components/analytics-provider md: https://shopify.dev/docs/api/hydrogen/2024-10/components/analytics-provider.md --- Analytics.​Provider Not supported in this version.