Introduction to Programmatic Marketing Content
Marketing Cloud scripting languages allow you to personalize landing pages, create applications, construct cross-channel templates/layouts, and work with messaging functions on the Marketing Cloud platform.
You'll need to understand scripting languages to use this functionality.
AMPscript is a scripting language that you can embed within HTML emails, text emails, landing pages, SMS messages, and push notifications from MobilePush. The system processes the script at the point where you include it in the message to render content on a subscriber-by-subscriber basis. The Marketing Cloud application handles all AMPscript calls at the end of the email send.
AMPscript can also interact with your data extensions. Use AMPscript to include information from your data extensions in your messages and to update data extensions with information from your landing pages.
Use AMPscript to process information and include information from your data extensions in the body of your messages and landing pages to provide advanced personalization for the subscribers.
Several factors may influence your choice to use SSJS over AMPscript:
- AMPscript simply and efficiently handles inline personalization or simple IF ELSE statements.
- AMPscript better handles use cases, where each subscriber needs to see unique content, than SSJS.
- AMPscript has a shorter learning curve than SSJS for users new to scripting languages in general.
- In general, the vast majority of users can handle the tasks they need to perform using AMPscript. Use Core library SSJS functions only to accomplish tasks on landing pages where AMPscript does not provide appropriate functions. Platform SSJS functions can handle messaging tasks as well as landing pages and applications.
GTL provides a declarative syntax used for creating personalized, dynamic, data-driven messages, as well as constructing cross-channel templates and layouts. GTL leverages the widely adopted Handlebars and Mustache template languages and provides additional functionality, while additionally simplifying how users interact with content and data to help them quickly build personalized Journey messages.