BeginImpressionRegion
→ voidBare-name Core form of Platform.Function.BeginImpressionRegion — marks the start of a named impression region. Unusable from SSJS; AMPscript-only feature.
Syntax
BeginImpressionRegion(name)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name |
string | Yes | The impression region name. |
Description
BeginImpressionRegion() is the bare-name Core-library form of Platform.Function.BeginImpressionRegion(). It requires Platform.Load("core", "1.1.5") before use — the bare name is undefined until the load has run.
Runtime note: unusable from SSJS. Once loaded, the bare name IS defined as a function, but calling it — with either a string literal or a variable — throws a resolved-value error ("…the parameter value for this call must be a literal (constant) value."). The bare alias and the Platform.Function.BeginImpressionRegion form behave identically (both throw), so impression regions are effectively an AMPscript-only feature.
The region name must be a compile-time literal; passing a variable is rejected at runtime with a resolved-value error, which the official docs do not mention. In practice every call throws from SSJS.
Example
Platform.Load("core", "1.1.5");
// Note: throws at runtime in SSJS — impression regions are AMPscript-only.
BeginImpressionRegion("hero-banner");