Skip to content

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.

PropTypeDefaultDescription
onManagePixel(pixelId: string) => void—Undocumented — add TSDoc to the prop in the library.
onManageWebsite() => void—Undocumented — add TSDoc to the prop in the library.
disconnectedPlatformsstring[][]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.
websiteConnectedbooleanfalseSwitches the custom-website callout's button between Connect and Manage.
platformsPixelPlatform[]—Override the platform list entirely.
metaLogoSrcstringMETA_LOGO_PLACEHOLDERUndocumented — add TSDoc to the prop in the library.
googleLogoSrcstringGOOGLE_LOGO_PLACEHOLDERUndocumented — add TSDoc to the prop in the library.
ga4LogoSrcstringGA4_LOGO_PLACEHOLDERUndocumented — add TSDoc to the prop in the library.
classNamestring—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.