Web hook for Campaign Monitor integration

by Alex Dunae - Member - 11:03PM, Aug 28, 2008

I’ve created a web hook that takes your Shopify opt-in customers and automatically adds them to a Campaign Monitor list.

You can grab the code here: http://code.dunae.ca/subscribe_from_shopify/

Cheers,

Alex

rawsterne

Member

03:05PM, Aug 29, 2008

Nice job. Thanks for sharing :)

Jamie

Member

09:28PM, Aug 29, 2008

I like this. I hate to be a big dummy but where do I put your script and how do I call it?

Thanks!

HunkyBill

Member

12:09AM, Aug 30, 2008

@Jamie,

In a nutshell… you put that script on YOUR server, and Shopify will call it with the order.

Your server will then place the information into (in this case) Campaign Monitor.

It is PHP code. If you make make yourself a subdomain, eg: jamie.jamiedomain.com, and you configure apache to respond to that URL with a the script as supplied above… you are gold.

If that sounds complicated… it is designed for those that run their own websites. You can likely get away with an el-gaupo cheap $1/month shared hosting PHP whatever account to use this webhook stuff if you need it.

Jamie

Member

03:03PM, Aug 31, 2008

Thanks Bill

I knew it was php, that’s why I was confused. Your explanation is perfect. I already have a subdomain to run xml/gallery and flash and uploads from… I have hosting @textdrive/joyent so that’s not a problem. Do I need to make another separate subdomain just for this one script or can it live happily along side the other files I am using?

Alex Dunae

Member

02:41AM, Sep 01, 2008

The web hook doesn’t need its own subdomain. Just upload and you’re done.

osu

Member

07:22PM, Mar 27, 2009

Hi,

Just wondering where I can find the CM_LIST information to use this script?

define(‘CM_API_KEY’, ‘taken from Campaign monitor’);
define(‘CM_LIST_ID’, ‘xxxxxxxxxxxxxxxxxxxxxx – where?’);
define(‘SHOPIFY_SHOP_ID’, ‘taken from shopify’);

Thanks

Meashman

Member

09:32PM, Mar 27, 2009

Osu,

You’ll find that information under your Campaign Monitor account. You need to set up a subscription list and then use that List id for your Shopify emails to be subscribed to.

If you go into the list under the “manage subscribers” tab and then click “edit name/type” you’ll find the API Subscriber List ID towards the bottom.

Hope that helps!

You must login to post a comment!

Don't have an account yet? Sign up for one.