> ## Documentation Index
> Fetch the complete documentation index at: https://resq-dependabot-github-actions-github-actions-478e18be3d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AnalyticsProvider

# Function: AnalyticsProvider()

> **AnalyticsProvider**(`__namedParameters`): `ReactNode`

Defined in: [react/index.ts:102](https://github.com/resq-software/npm/blob/fe2e20ae9db8398a0db1e3218edaabb3cf7004d6/packages/analytics/src/react/index.ts#L102)

Boot the analytics singleton once on mount and render `children`.

Idempotent — repeat mounts (e.g. fast-refresh, tree-rebuild) are
detected via a ref guard and do not re-initialise PostHog / GA4.

## Parameters

### \_\_namedParameters

[`AnalyticsProviderProps`](../interfaces/AnalyticsProviderProps)

## Returns

`ReactNode`

## Examples

```tsx theme={null}
<AnalyticsProvider config={config}>
  <App />
</AnalyticsProvider>
```

```tsx theme={null}
<AnalyticsProvider config={config} deferUntilIdle={false}>
  <App />
</AnalyticsProvider>
```
