Verification in progress Differs from official docs Test scripts included

Syntax

BeginImpressionRegion(regionName)  →  string
1 argument — exactly

Parameters

Name Type Required Description
regionName string Yes Name of the impression region to open, as a literal or a variable

Example

%%[ BeginImpressionRegion("promo") ]%%X%%[ EndImpressionRegion() ]%%

Renders X. The two calls add nothing to the email.

Return value

string — an empty string. The call leaves no visible trace in the rendered email.

Behaviour

It emits nothing. Content between BeginImpressionRegion("ProbeRegion") and EndImpressionRegion() renders exactly as written, with no marker or comment added.

A variable works as the region name. SET @name = "dyn-region" followed by BeginImpressionRegion(@name) renders the content after it normally; the email does not fail.

Impression tracking itself was not tested in Next. Whether opens and clicks are recorded against the region only shows in send reports, which a preview email does not produce.

Show Next test script
<!-- Marketing Cloud Next test script for BeginImpressionRegion. Paste it into the HTML component of a
     Next email and open the preview. Each line prints the result Next gave when the call
     was rendered on its own (expect) next to the result of this run (got).
     Assembled from single-call test emails (dates on the page); it has not been
     run as one email. Calls that make Next fail are listed separately. -->
<p>c1 expect=[X] got=[%%[ BeginImpressionRegion("ProbeRegion") ]%%X%%[ EndImpressionRegion() ]%%]</p>
<p>c2 expect=[X] got=[%%[ SET @r2bir = "dyn-region" BeginImpressionRegion(@r2bir) ]%%X]</p>

Differs from official docs

  • Documented as unavailable in Next, yet accepted. The reference’s availability table says No for Marketing Cloud Next. In a Next email the call saved and rendered: the content around it came out as X, with a literal or a variable region name. Tracking itself was not tested. Card

Availability & differences

PlatformAvailable
Marketing Cloud EngagementYes
Marketing Cloud NextYes, from API 68.0

See also