Uncategorized

Tip: Get Your ChartMogul Notifications in Slack With This Hack

We all love to see those notifications in our ChartMogul account for new customers or new business (who wouldn’t?). But wouldn’t it be great if you could get those notifications somewhere other than your email inbox or chartmogul.com, for example everyone’s favourite chat app of the moment, Slack?

Here’s a quick solution to post your ChartMogul notifications to a specific Slack channel for your company, using the Swiss Army knife of the internet, IFTTT.

Note: This setup requires Gmail, and that you’re receiving the ChartMogul email notifications to your Gmail account.

Set up a Gmail label for ChartMogul notifications

cm_header copy

In order for IFTT to identify the emails to forward onto your Slack group, you need to set up a filter and corresponding label in Gmail, which applies to all of the ChartMogul notifications you want to post.

  1. In your Gmail account, click your search field, and enter the following:
    (from:(notify@chartmogul.com) ("new customer") OR ("switched their subscription") OR ("customer churned") OR ("downgraded their subscription"))

    This search should match notifications you receive for:

    • New customers (the best kind of notification)
    • Switched customers (upgraded plans)
    • Downgraded customers
    • Churned customers (eek)
  2. Click the “Create filter with this search” link.
  3. On the next page of options, select “Apply the label:” and create a new label – let’s call it ChartMogul Notifications
  4. Finally, select “Also apply filter to matching conversations”, then go ahead and create it by clicking “Create filter”. We’re done with the Gmail part!

Screenshot 2015-09-10 15.22.41

Create a recipe in IFTTT


TIP: If you don’t want to create your own recipe manually, you can just re-use my own, which is published here: ChartMogul Notifications in your Slack Channel


  1. If you don’t have an account, go ahead and set one up on ifttt.com. You don’t need the mobile app for this, unless you want to install it.
  2. Now for the good bit: Go to ifttt.com/myrecipes/personal/new to start creating a new recipe.
  3. Click the “This” part of the rule, then search for and click the Gmail Trigger Channel.
  4. On the “Choose a Trigger” page, click “New email in inbox labeled”, and then in the Label field type the exact name of the Gmail label we created: ChartMogul Notifications
  5. Now click the “That” part of the rule, search for the Slack Action Channel and click it. You’ll need to then Authenticate with your Slack login, so that IFTTT can post to Slack for you.
  6. Then we just need to configure the Slack settings:
    • Select the channel you want the notifications to go to.
    • Message – let’s leave it as “Subject”.
    • Title – we can make this field blank.
    • Title URL – leave this blank too.
    • Thumbnail URL – Edit this and set it to “FirstAttachmentPublicURL” – then we’ll get a ChartMogul thumbnail with the post.
  7. Save these settings to go to the next page, and give the recipe a title (leave it as the default if you like). Then create the recipe and wait for your first notification to come in – you should see it in the Slack channel that you selected, posted by the IFTTT bot. Awesome!

slack

Of course, you can use this method to get any kind of email notifications forwarded to Slack – just re-use the IFTTT template, and change the Gmail label name that you want to use.

Ed Shelley

Former Director of Content

@Mr_Ed

chartmogul email hack notifications slack tip