to the tippy ↑

MailChimp Goal and Wistia

Warning: You are heading into developer territory!

Our APIs are designed for programmers. If our APIs were a ski trail, they would be a nice blue square cruiser - good if you know how to ski, but not for beginners.

Only move forward if you are comfortable working with APIs, or have a friend nearby that is.

So you've got a killer autoresponder setup in MailChimp, and you want to trigger it based on video viewing behavior? Well, you've come to the right place!

Setting it up

Before we get into the details, make sure you have already followed these instructions from the helpful guys at MailChimp.

At this point you should:

  • Have the Goal integration enabled in your MailChimp account
  • Have the the Goal JavaScript snippet on your site
  • Have an autoresponder set up

Triggering the responder

Let's say that you want to trigger the autoresponder when someone finishes a product demo video. You'd do something like this:

autoresponder.js
1
2
3
4
wistiaEmbed.bind('end', function() {
  $mcGoal.processEvent('finished-product-demo-video');
  return this.unbind;
});

Then in your autoresponder, you'll want to set it to trigger on the finished-product-demo-video event like so:

Take a look at the player API and the embed shepherd for more info on how to attach to player events.