Salesforce Marketing Cloud Handbook

Reference, guides and copy-ready code for Marketing Cloud Engagement: AMPscript, SSJS, SQL and Data Views, emails, CloudPages, APIs, Journey Builder, Automation Studio and playbooks. Built by Igor Bratti · Source on GitHub

Previews use sample data. The real pages run AMPscript inside Marketing Cloud.

CloudPages

Lead capture form

AMPscript · validation · honeypot · consent · first-touch attribution

Emails

Sections

AMPscriptSyntax, functions, personalization strings, data writes, content blocks, debugging, recipes JavaScriptSSJS fundamentals and reference, WSProxy, HTTP, scripts; client-side scripts for CloudPages SQL & Data ViewsData Views reference, Query Activity rules, time zones, KPIs, hygiene, monitoring EmailsRendering, deliverability, Content Builder, AMP, templates and blocks CloudPagesSecurity guide and four complete pages APIsAuthentication, REST and SOAP references Journey BuilderEntry sources, data, splits, exits, re-entry, versions, monitoring Automation StudioStarting sources, activities, steps, error handling, handover PlaybooksContact cleanup, journey launch, automation failure alerts Field notesProblems, causes and fixes from real projects VS Code snippets24 snippets for AMPscript, SSJS and SQL