---
schema_version: "1"
id: 020932d67e7a39e72ba6fc25e0f8f5f585677e9582a345de9bc12cb5a7a235d7
title: Impression Region Handlebars Examples
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mktg_content_impression_regions_examples.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mktg_content_impression_regions_examples.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0b576765aca7571b47d614d6d7bdc4dd5fab2fbd0f12b1987671dd9e54e258f4
description: When you implement impression regions with Handlebars or AMPscript functions, you customize them with content that you want to track. These examples cover some common use cases and show you some different configurations for impression regions using Handlebars.
products:
  - Marketing
release: "264"
---
# Impression Region Handlebars Examples

When you implement impression regions with Handlebars or AMPscript functions, you customize them with content that you want to track. These examples cover some common use cases and show you some different configurations for impression regions using Handlebars.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <span>Salesforce <strong class="uicontrol">Enterprise</strong> and <strong class="uicontrol">Unlimited</strong> Editions with Marketing Cloud Next <strong class="uicontrol">Growth</strong> or <strong class="uicontrol">Advanced</strong> Edition</span></td></tr></tbody></table>

For more on functions for impression regions, see these developer docs:

- AMPscript Content Functions: [BeginImpressionRegion](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-content/mc-ampscript-reference-content-begin-impression-region.html)

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mktg_all-264-0-0-production-enus/e92be4e1-4bef-47a5-a11d-95f4ea1f7d7a/images/icon_example.png)

Example

Single Content Block

At Ursa Solar Major, marketer Lance is working on a welcome email for new subscribers. In the email, Lance is including a button that links to a landing page with discounts for new customers. Lance wants to track clicks for a Browse Solar Deals button. They turn on Impression Region Tracking for the button in the component’s settings and names the region “New Customer Deals.” Just to make sure that everything looks right, Lance checks the code view of the email and sees the impression region.

```
<div>
  {{#impressionRegion "NewCustomerDeals"}} 
    <div><a href="https://ursasolar.com/springpromo">Browse Solar Deals</a></div>
  {{/impressionRegion}}
</div>
```

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mktg_all-264-0-0-production-enus/e92be4e1-4bef-47a5-a11d-95f4ea1f7d7a/images/icon_example.png)

Example

Dynamic Content

At Ursa Solar Major, marketer Lance wants to send an email to subscribers letting them know about the company’s spring promotional deals. The team uses dynamic content variations to target their email content to subscribers based on the systems they’re interested in. Lance decides to use Impression Region Tracking to report on engagement for the content variations.

```
<div>
{{#if system="Residential"}}
    {{#impressionRegion "ResidentialHeading"}}
    Ready to invest in your home and your future?
    {{/impressionRegion}}
{{else if color="Commercial"}}
    {{#impressionRegion "CommercialHeading"}}
    Future-proof your business with solar energy!
    {{/impressionRegion}}
{{else}}
    {{#impressionRegion "Neither"}}
    Solar for all, savings for you!
    {{/impressionRegion}}
{{/if}}
<div>
```

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mktg_all-264-0-0-production-enus/e92be4e1-4bef-47a5-a11d-95f4ea1f7d7a/images/icon_example.png)

Example

Nested Content Blocks

At Ursa Solar Major, marketer Lance and the team are working on an email to residential solar customers who purchased in the last year. The email includes links to accessory products, and the team wants to report on click engagement. They decide to use nested impression regions to track the section as a whole, and each individual link.

```
<div>
  {{#impressionRegion "Accessories"}} 
    Want to get more out of your home system? Check out these upgrade options.
    Url-1a
  {{/impressionRegion}}
    <div>
      {{#impressionRegion "BatteryPacks"} 
        Bank your energy for a rainy day! Browse battery options to store excess energy from   your system.
<a href="https://ursasolar.com/products/batteries">Browse Batteries</a>
      {{/impressionRegion}}
      {{#impressionRegion "EVChargers"} 
        If you have or are considering an electric vehicle, take a look at the options for EV chargers that work with your system.
<a href="https://ursasolar.com/products/chargers">Browse Chargers</a>
      {{/impressionRegion}}

    </div>
  
</div>
```

#### See Also

- [_Developer Docs:_ AMPscript Content Functions](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-content/mc-ampscript-reference-content.html)
- [_Developer Docs:_ Handlebars Content Functions](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-content-references/mcn-handlebars-reference-content.html)