印象區域處理常式範例
當您使用 Handlebars 或 AMPscript 函數實作列印區域時,您會使用您要追蹤的內容自訂這些區域。這些範例涵蓋一些常見使用個案,並為您顯示使用「控點」的列印區域一些不同的組態。
必要版本
| 提供版本:具備 Marketing Cloud Next Growth 或 Advanced Edition 的 Salesforce Enterprise 和 Unlimited Edition |
如需有關適用於列印區域的 Handlebars 和 AMPscript 函數詳細資訊,請參閱以下開發人員文件:
- Handlebars 內容函數:BeginImpressionRegion
- AMPscript 內容函數:BeginImpressionRegion
範例
單一內容區塊
在 Ursa Solar Major,行銷人員 Lance 正在針對新訂閱者處理歡迎電子郵件。在電子郵件中,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>
此文章是否解決您的問題?
請讓我們知道,以便我們改進!
