What is IFTTT and how can you use it with Simply Static Pro

What is IFTTT and how can you use it with Simply Static Pro 1

Just a quick heads-up!

This article is more than 24 months old and might contain outdated information.
If you want to learn the latest about Simply Static, visit our documentation or watch our video course.

If you’ve built a static website or are considering it, you might be wondering how to automate various tasks such as adding subscribers to Mailchimp, adding contacts to a CRM, sending messages to Slack, or adding information to a Google Sheet.

One way to do this is by using IFTTT with your static website. IFTTT lets you connect different apps and devices to do various things. The best part is that you can make it work for a Simply Static Pro-powered WordPress static site.

In this article, we’ll show you how you can use IFTTT with Simply Static Pro to add subscribers to Mailchimp.

Let’s get started.

What is IFTTT?

If This Then That or IFTTT for short is software that lets you connect apps, devices, and services from different developers to trigger one or more automations. Put simply, it lets you connect apps and devices to work together to do specific things involving the apps, devices, and services you’re using.

Let’s take a look at some examples of automations you can create using IFTTT:

  • Update the wallpaper on your Android device with NASA’s image of the day.
  • Post your Instagram photos to WordPress.
  • Log how much time you spend at specific locations in Google Sheets.

At the time of this writing, IFTTT works with more than 700 apps, services, and devices including Google, Slack, Spotify, GitHub, Twitter, Instagram, and Dropbox.

Why you might need to use IFTTT for your static site

A static site is displayed in the user’s web browsers exactly as it’s stored. It consists of a series of HTML files served by a simple HTTP server. Each HTML file represents a page of the website.

Static sites don’t have dynamic back-ends as WordPress does. They’re perfect for anyone who’s looking to build a website for a limited-time promotion or needs a website with a couple of pages only. One of the major benefits of creating a static site is enhancing security and delivering better performance to visitors.

Make your website even faster with Simply Static Pro

You can build static websites using a static site generator like Simply Static. Simply Static is a plugin that lets you create a static site directly from the WordPress admin and deploy it to a directory on your hosting server.

To get even more out of your static WordPress site, you can use IFTTT with Simply Static Pro to quickly and easily trigger automation that would otherwise be difficult to implement. Let’s take a look at a few examples:

  • If you get a new subscriber on your WordPress website, then the subscriber is added to Mailchimp.
  • If a customer makes a purchase on your WooCommerce store, then they’re added as a contact to your CRM.
  • If a client leaves a testimonial, then add it to a Google Sheet.

Next, we’ll explain how you can set up IFTTT with Simply Static Pro and use it to add a subscriber to Mailchimp and add a contact to Pipedrive.

How to use IFTTT with Simply Static Pro to add a subscriber to Mailchimp

Before we jump into the tutorial, let’s quickly go over the setup we’re working with.

We’re using Simply Static Pro to generate a static site that’s hosted on Netlify. Check out our roundup of 7 Easy Services for Static Hosting for more hosting platforms.

We’re going to use IFTTT to set up a webhook. A webhook is a simple HTTP call. Then, when the IFTTT trigger executes, IFTTT will call the specified URL and run the automation.

Step #1: Create a new applet in IFTTT

The first thing you need to do is create an account on IFTTT if you haven’t done so already. Next, click on the Create button from the IFTTT dashboard.

Create button

Click the Add button next to where it says IF This.

Add button

Search for Webhooks using the search bar and click the Webhooks service.

Webhooks

You’ll be prompted to choose a trigger. Here, you need to click the Receive a web request trigger.

choose a trigger

Enter a name for the trigger and click the Create trigger button to continue.

name for the trigger

Now that we’ve created a trigger, the next step is to find the Webhook URL. Here’s what you need to do:

Webhook

From your IFTTT account, go to My Services. Scroll down the page and click on Webhooks. On the next page, click on the Settings button in the top right corner.

Settings button

You’ll see a URL under the Details heading.

URL

Copy the URL to your clipboard. We’ll add this to our form in WordPress.

Step #2: Add the IFTTT endpoint to Simply Static

Log in to your WordPress static website and create a new form using Simply Static. Give it a title and fill out the form details.

IFTTT endpoint

Paste the URL you copied to your clipboard in Step #1 into the Endpoint field. Click the Publish button.

Step #3: Configure the action in IFTTT

Go back to your IFTTT applet and click the Add button next to where it says Then That.

Add button

Search for Mail using the search bar and click on the Mailchimp service.

Mailchimp service

Click on the Add new subscriber action to continue.

Add new subscriber action

Choose the list you want to add the new subscriber to and select the values to enter in the email address, first name, and last name fields.

select the values

Click the Create action button. On the following screen, click the Continue button and finally, click the Finish button.

Finish button

That’s it! Now, whenever a user fills out the form on your static website, they’ll automatically be added as a contact to your Mailchimp list.

form on your static website
Mailchimp list

Conclusion

With Simply Static Pro and IFTTT, you can do all sorts of things that wouldn’t be possible with a WordPress static website otherwise. We explained how you can set up an applet in IFTTT to automatically add a subscriber to Mailchimp whenever someone fills out a form on your static website.