AMPscript
BeginImpressionRegion
ContentArea
ContentAreaByName
ContentBlockById
ContentBlockByKey
ContentBlockByName
ContentImagebyID
ContentImagebyKey
EndImpressionRegion
TreatAsContent
Validate Your Server-Side JavaScript using WSProxy
Ends an impression region within the supplied content. You can use the impression region to identify specific areas of content for analytical purposes.
EndImpressionRegion(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | Boolean | Indicates whether the function closes all nested impression regions. A value of true closes all nested impression regions. A value of false does not close all nested impression regions. |
1<script runat="server>
2 Platform.Function.BeginImpressionRegion("mainBlock");
3 var content = Platform.Function.ContentArea("123456");
4 var moreContent = Platform.Function.ContentArea("789");
5 Platform.Function.EndImpressionRegion("mainBlock");
6</script>