Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / packages/analytics/head.tsx |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | packages/analytics/head.tsx |
| Original SHA-256 | 89715907c3672e0b021e6048053362997da4620f11677b038a888061e887747b |
| Git blob SHA | 62d9e1744cf6100fe90effea7033aefb8c0227bb |
| Reading-copy SHA-256 | 89715907c3672e0b021e6048053362997da4620f11677b038a888061e887747b |
Recovered source transcript
Download complete source text ↓30 lines · 0.8 KB
import { AnalyticsProvider } from './index'
export { OpenPanelIdentify } from './providers/openpanel-identify'
interface AnalyticsHeadProps {
openPanelClientId?: string
nonce?: string
}
/**
* Analytics component specifically for the head section
* This component should be placed in the <head> tag of your root layout
*
* @param props - Component properties
* @param props.openPanelClientId - Client ID for OpenPanel Analytics
* @param props.nonce - CSP nonce for inline scripts
* @returns Analytics script components for head section
*
* @example
* ```tsx
* // In your root layout.tsx
* <head>
* <AnalyticsHead openPanelClientId="op_abc123" nonce={nonce} />
* </head>
* ```
*/
export function AnalyticsHead({ openPanelClientId, nonce }: AnalyticsHeadProps) {
return <AnalyticsProvider openPanelClientId={openPanelClientId} nonce={nonce} />
}