Accurately background-loading the MktoForms2 global object

Background-loading (a.k.a. defer-ing or async-ifying) MktoForms2 makes the non-form parts of your page more resilient in the face of network slowdowns. Here’s how to do it right.

Brainteaser: Why does this line of Velocity code *work*?

Velocity uses under-the-hood magic to reduce (but not eliminate) fatal errors. Figuring out “Why does this work... when it kinda shouldn‘t?“ is vital for mastering the language.

Running Subject Line AB tests with segmented Subjects

Some Marketo features aren’t compatible with Dynamic Content™ (stuff labeled “Dynamic Content” in the UI) but you can use simple Velocity to accomplish the same outcome.

Consolidating Email Link Performance report links using Excel & VBA

Once more into the breach of Excel, my least favorite app... and yet one I can’t quite eliminate from my life.

The definitive guide to setting up copyright year {{my.tokens}} for Emails and LPs

Don’t settle for sloppy: here’s how you set up auto-updating and time-zone-accurate {{my.tokens}} to output the current year.

Appending the referrer’s query string to the current URL

You can easily transplant UTM-based attribution data from one page to another — as long as the source page trusts the target enough to pass the (full) referrer.

Avoiding the dreaded “Invalid Image URL” error with tokenized assets

In Marketo, tokens are critical to keeping your head on straight. But in some parts of the UI, what you think is special {{token.notation}} is just plain ol’ curly braces.

Switch a Marketo form’s Thank You page based on the current URL

At first glance, you might think I’m just regurgitating a built-in Marketo Forms 2.0 feature. But, surprisingly, it’s not in there until you add a tiny bit of code.