Global

Members

# constant Config

View Source src/config.ts, line 18

# constant NUMERIC_ONLY

Numeric-only segment pattern used to validate both the experienceId and variationId parts of a preview param value.

View Source src/parse-preview-param.ts, line 12

Methods

# parsePreviewParam(value) → (nullable) {Object}

Parse a preview param value of the form `"{experienceId}.{variationId}"` (mirrors the web tracking script's force-param `_conv_eforce={experienceId}.{variationId}`). Splits on the first dot only; both segments must be non-empty, numeric-only strings. Any other shape (missing dot, extra dot, empty segment, non-numeric segment, non-string input) returns `null`. Pure function: never throws, has no side effects, performs no logging.
Parameters:
Name Type Description
value string

View Source src/parse-preview-param.ts, line 27

Object