Skip to content

buildContentUrl

buildContentUrl(target, protocol?): string

Defined in: protocol.ts:103

Build the /content URL used for first paint. Same pinning rules as the stream — but deliberately NOT the same sdk=1 rule.

sdk=1 is a promise: “the SDK will record this impression itself”. The stream path keeps that promise — useIsland owns a visibility-gated recorder. The content path CANNOT: its consumers (CopyCard, ProductCard, the cookbook’s content-only recipes) have no observer and no recorder, so sending sdk=1 here told the server to stop counting while nobody else started — zero impressions for every content-only integration. Omitting it leaves the server owning the /content impression, exactly as it does for every non-SDK consumer of the endpoint.

StreamTarget

number = PROTOCOL_CURRENT

string