Skip to content

InitialCopy

Defined in: core/src/visitorContext.ts:131

Copy already produced for this view, ready for the initialCopy option of useIsland, Hero and Cta. It renders visibly from the first frame, settled and final.

optional campaignId?: string

Defined in: core/src/visitorContext.ts:143

The campaign the copy belongs to. Impressions attribute to it.


contentSource: "generated" | "cached" | "static"

Defined in: core/src/visitorContext.ts:139

Where the copy came from: cached for copy read from the live-copy cache.


copy: object

Defined in: core/src/visitorContext.ts:132

optional body?: string

optional cta?: string

optional greeting?: string

optional headline?: string


optional freshness?: "fresh" | "stale"

Defined in: core/src/visitorContext.ts:149

For cached copy: fresh, or stale when it was past its freshness window but still within its serving window. Reported with the impression.


optional variantId?: string

Defined in: core/src/visitorContext.ts:141

The variant the copy belongs to. Pins the page’s variant.