The Marketing Engineer's Lab

Expert insights on Marketing Engineering, Activation Architecture, and MarTech. Learn how to build scalable marketing systems with code snippets, tutorials, and deep dives.

Subscribe to the newsletter
Field Note 001: Deconstructing the CDP: Why I’m Building My Own Marketing Stack
Featured·Nov 24, 2025

Field Note 001: Deconstructing the CDP: Why I’m Building My Own Marketing Stack

I decided to strip away the enterprise UI and build a scaled-down version of a CDP to understand exactly how it works.

Read more

Latest Posts

Recent articles and insights

View all
SSJS: Generate a Dynamic Form Based on a Data Extension

SSJS: Generate a Dynamic Form Based on a Data Extension

In this SSJS example, we will create a dynamic form based on a Data Extension.

June 11, 2025

View Article
How to Prompt AI to Write Better SFMC Queries

How to Prompt AI to Write Better SFMC Queries

Ever asked ChatGPT or Copilot to write an SFMC query and gotten something that looks perfect but breaks when you run it?

May 15, 2025

1
View Article
How to Preview Emails in AMPScript: EmailPreview undocumented function

How to Preview Emails in AMPScript: EmailPreview undocumented function

The EmailPreview AMPScript function, an undocumented function that lets you preview emails programatically inside of CloudPages.

April 17, 2025

View Article

Popular Snippets

Ready-to-use code examples

View all
SSJS

Secure a CloudPage for logged in users

Implements a secure OAuth 2.0 Authorization Code flow to protect a Cloud Page. Requires an Installed Package with a "Web App" API Integration in SFMC.Handles token validation, secure cookie sessions, and optional client-side token handoff.

#CloudPages
#Security
SQL

Extract URL Parameters in SQL

Extract URL parameters from URLs in SFMC. Useful for querying the _Click data view or other Data Extensions that contain Link data you want to use.

#Data Views
#SQL