Syntax

BeginImpressionRegion(name)
1 argument

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.

Example

Platform.Load("core", "1.1.5");
// Note: throws at runtime in SSJS — impression regions are AMPscript-only.
BeginImpressionRegion("hero-banner");

See Also