---
schema_version: "1"
id: 93fece7c48576fc955b58c2d16ebb965236e1d36f9703cc796f96ceec98bd76a
title: EndImpressionRegion
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformContentEndImpressionRegion.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformContentEndImpressionRegion.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b8d1ba08ecf3a6a79af79f68c7acaa53fa59dcef26394b2142a1ed785c558adf
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# EndImpressionRegion

## Overview

Ends an impression region within the supplied content. You can use the impression region to identify specific areas of content for analytical purposes.

### Syntax

EndImpressionRegion(1)

### Function Properties

<!--complex table-->

| 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. |

## Example

```
<script runat="server>
     Platform.Function.BeginImpressionRegion("mainBlock");
     var content = Platform.Function.ContentArea("123456");
     var moreContent = Platform.Function.ContentArea("789");
     Platform.Function.EndImpressionRegion("mainBlock");
</script>
```
