印象区域句柄示例
当您使用句柄或 AMPscript 函数实施印象区域时,您可以使用要跟踪的内容对其进行自定义。这些示例涵盖了一些常见的用例,并向您展示了一些使用把手的印象区域的不同配置。
所需的 Edition
| 适用于:带 Marketing Cloud Next Growth 或 Advanced Edition 的 Salesforce Enterprise 和 Unlimited Edition |
有关印象区域的句柄和 AMPscript 函数的更多信息,请查看这些开发人员文档:
- 句柄内容函数:BeginImpressionRegion
- AMPscript 内容函数:BeginImpressionRegion
示例
单一内容块
在 Ursa Solar Major,营销人员lance 正在为新订阅者准备一封欢迎电子邮件。在电子邮件中,Lance 包含一个按钮,链接到新客户的折扣登录页面。兰斯想要跟踪浏览太阳能交易按钮的点击。他们在组件设置中为按钮打开印象区域跟踪,并将区域命名为“新客户交易”。为了确保一切正常,Lance 会检查电子邮件的代码视图,并查看印象区域。
<div>
{{#impressionRegion "NewCustomerDeals"}}
<div><a href="https://ursasolar.com/springpromo">Browse Solar Deals</a></div>
{{/impressionRegion}}
</div>示例
动态内容
在 Ursa Solar Major,营销人员lance 希望向订阅者发送电子邮件,让他们了解公司的春季促销交易。该团队使用动态内容变体,根据订阅者感兴趣的系统,将他们的电子邮件内容定向到他们。Lance 决定使用印象区域跟踪来报告内容变体的参与度。
<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>
示例
动态内容
在 Ursa Solar Major,营销人员lance 和团队正在处理一封给去年购买的住宅太阳能客户的电子邮件。该电子邮件包含附件产品的链接,团队希望报告点击参与度。他们决定使用嵌套印象区域来跟踪整个部分,以及每个单独的链接。
<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>
本文章是否解决您的问题?
请与我们共享您的想法,以便我们进行改进!
