Loading
Prepare for Email to Become the Default Login ExperienceRead More
Marketing Cloud Next
Impression Region Handlebars Examples

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

Available in: Salesforce Enterprise and Unlimited Editions with Marketing Cloud Next Growth or Advanced Edition

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

Example
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
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
Example

Dynamic Content

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>
 
Loading
Salesforce Help | Article