Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/18 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

Web Campaigns and Templates

As you work to modify existing templates or build out your custom template, referencing code in the global templates is often a great place to start. Even if they do not map precisely to the use case you are building, the global templates provide template developers with a view into common functions/configurations that can help you solve your use cases. The following table provides a quick breakdown of some of the key code components used in our global templates.

Global TemplateKey Code Components Leveraged in the TemplateSample Configuration Options to Consider
Banner with Call-To-Action
  • Number of calls to action (CTAs)
  • Text/CTA location
  • Banner size
  • Banner style (flat image vs. layered)
Einstein Content Recommendations
  • Number of recommended items (content)
  • Style of recommendations
  • Location of recommendations based on mapped content zones
Einstein Decisions - Server-Side Template
  • Number of recommended items (content)
  • Location of recommendations based on mapped content zones
Einstein Product Recommendations
  • Number of recommended items (products)
  • Style of recommendations
  • Location of recommendations based on mapped content zones
Exit Intent
  • Number of CTAs
  • Text/CTA location
  • Pop-up image style (flat or layered)
  • Pop-up contents (recipe inclusion)
Exit Intent with Email Capture
  • Text/CTA location
  • Pop-up image style (flat or layered)
  • Attribute collected
Google Analytics Segment Push
  • Decorators
  • User Segment Reference / Lookup from the Common Gear
  • Limited default options due to specificity of template
Infobar with User Attribute & Call-To-Action
  • Number of CTAs
  • User attribute leveraged (default is visitor's name)
  • Text and background color/styles
Infobar with Call-To-Action
  • Number of CTAs
  • Infobar styling
Redirect-
Slide-In with Call-To-Action
  • Number of CTAs
  • Text and background color/styles
  • Slide-in location & speed