Settings
Settings analytics
The Analytics settings pane listing tracking pixels and conversion APIs (Meta, TikTok, Google, GA4, LinkedIn) a space can connect, plus a callout for linking an external website.
Available
Ports as-is
Examples
Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.
Settings analytics
Rendered live from Storybook
Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.
Props
The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.
| Prop | Type | Default | Description |
|---|---|---|---|
onManagePixel | (pixelId: string) => void | — | Undocumented — add TSDoc to the prop in the library. |
onManageWebsite | () => void | — | Undocumented — add TSDoc to the prop in the library. |
disconnectedPlatforms | string[] | [] | Ids forced into the disconnected state. Kept from the app because it is how the parent screen reflects a just-disconnected platform without re-fetching. |
websiteConnected | boolean | false | Switches the custom-website callout's button between Connect and Manage. |
platforms | PixelPlatform[] | — | Override the platform list entirely. |
metaLogoSrc | string | META_LOGO_PLACEHOLDER | Undocumented — add TSDoc to the prop in the library. |
googleLogoSrc | string | GOOGLE_LOGO_PLACEHOLDER | Undocumented — add TSDoc to the prop in the library. |
ga4LogoSrc | string | GA4_LOGO_PLACEHOLDER | Undocumented — add TSDoc to the prop in the library. |
className | string | — | Undocumented — add TSDoc to the prop in the library. |
Reference
Transcribed from the component audit. If this disagrees with the source, the source is right.
- Source
src/components/settings/SettingsAnalytics.tsx- Portability
- Copies across unchanged — only the utils import path moves.
- Notes
- Use it as the Analytics tab of a space's settings sheet; each row shows a connection dot, linked-account count, and a Connect or Manage button. It is desktop-only by design — below the md breakpoint the list is replaced with an "Available on desktop" message rather than a cramped mobile layout.