Velocitips: Switch email content based on day/time

With an assist from Velocity, your emails can have time-responsive content — and I don't just mean Happy ${day_of_week}, ${first_name}! [Updated 1/14/2018]

Relative-ize Marketo forms on Free-Form LPs

Ah, Free-Form LPs: the Marketo feature you swore you'd never use again. Except your marketers or clients (or even you in a crunch) didn't listen. The main problem with FFLPs...

Use JavaScript within Velocity (if you must)

Since version 1.6 (i.e. a long time ago) Java, and therefore Velocity, has had a built-in JavaScript engine. The JS engine has always been reliable (though admittedly not high-performance) and if you're better at JS than Velocity...

What I hear when you write “e-meet”

I’ve been getting emails with the old-sounding-newish “Nice to e-meet you” a lot lately, and I always think of this scene.

Calling the Twilio Lookup API as a Marketo webhook

Twilio offers a pretty awesome Lookup API to enrich phone numbers with metadata: it can distinguish mobile and landline numbers (Sales will thank you!), determine carrier, and even do reverse Caller ID lookup.

Velocitip: Find the interesting object in Trigger and Batch modes

It's fairly common (in my world) for the same Velocity script to need to refer to a triggering object or, in a batch context, the most recently updated object.

Fixing Marketo pURLs

It's well-known that Marketo's pURL feature, out-of-the-box, has a fatal (and kinda fascinating) shortcoming. If someone has visited your site before — meaning either an anonymous or associated Munchkin session — then pURL-enabled pages aren't functional.

Changing the dimensions of mktoVideo (YouTube) elements on Guided LPs

User BJ asked in a Nation thread about changing mktoVideo dimensions from the default 420 x 315. Even though I don't typically use mktoVideo, I started probing the CrowdFactory API (that being the real name of the “Marketo Social” widget that powers video elements).