AMPscript BeginImpressionRegion (Next)
Open an impression tracking region with AMPscript BeginImpressionRegion in Marketing Cloud Next. Syntax, examples, and behaviour proven in a Marketing Cloud Next email, including the variable region name that Next accepts.
Syntax
BeginImpressionRegion(regionName) → string
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
| Platform | Available |
|---|---|
| Marketing Cloud Engagement | Yes |
| Marketing Cloud Next | Yes, from API 68.0 |
Content wrapped in a region renders unchanged on both platforms (X stays X). Engagement aborts the page when the region name is a variable (BeginImpressionRegion(@name)); Next renders the content as if the name were a literal. Compared 2026-11-23 by rendering the same calls in a Marketing Cloud Next email.
See also
EndImpressionRegion— closes the region this opens- Official reference