interface GoogleAnalyticsProps { setting: { gaMeasurementId?: string | null; }; } /** * Sends the commerce events (product viewed, added to cart, checkout steps, * purchase, ...) to Google Analytics 4 as its ecommerce events * (`ga4Events.ts`), when the store has a valid Measurement ID. * * The page head loads GA4 and sends the page view (`GoogleAnalyticsHead.tsx`), * with Google's consent default first, so this component only listens. It * runs nothing without a valid id, or without the `gtag()` the head script * defines. One listener per page, never removed: it subscribes with replay, * so the page's earlier events are sent too, and a second listener (the * effect running again, such as after a fast refresh of this file in * development) would send them twice. * * It lives in the `body` area: head-area components are rendered on the * server but not hydrated in production, so their effects never run there. */ export default function GoogleAnalytics({ setting: { gaMeasurementId } }: GoogleAnalyticsProps): null; export declare const layout: { areaId: string; sortOrder: number; }; export declare const query = "\n query Query {\n setting {\n gaMeasurementId\n }\n }\n"; export {};