10 lines
422 B
TypeScript
10 lines
422 B
TypeScript
import type { BasePayload } from 'payload';
|
|
import type { AnalyticsConfig } from './types.js';
|
|
/**
|
|
* Reads the public analytics IDs from SiteIntegrations, server-side.
|
|
*
|
|
* Returns only the two public IDs (GA4 / GTM) — safe to pass to the client
|
|
* <Analytics> component. Does NOT expose any secret from SiteIntegrations.
|
|
*/
|
|
export declare function getAnalyticsConfig(payload: BasePayload): Promise<AnalyticsConfig>;
|