How do I connect Klipfolio and MailChimp?

You can set up a connection between Klipfolio and your MailChimp data to display your email marketing metrics on a dashboard.

This article includes:

What options do I have for visualizing my MailChimp data?

Create data visualizations based on pre-built options or build your own. The choice is yours!

Pre-built by Klipfolio

In collaboration with industry experts and adhering to current best practices and trends, Klipfolio focuses on getting the most out of your data and presenting it in meaningful, actionable visualizations. Our pre-built content, including pre-built data sources and pre-built Klips can act as a complete solution or as a starting point toward custom building.

  • MailChimp pre-built data sources: Data sources provide the foundation for Klip building, so we suggest you create a data source as a first step (before building Klips and adding them to your dashboard). Our pre-built data sources focus on the most sought-after MailChimp data and are found on the Service Connectors page, available from this link or from your list of data sources. When you select a service connector from this page, the data source for that service is automatically added.

  • MailChimp pre-built Klips: Pre-built Klips enable you to quickly set up a dashboard using predefined visualizations that display common key metrics. Pre-built Klips are found in the Klip Gallery or, for White Label customers, in the Integration Gallery.

Custom-built by you

Taking the time to learn how to create your own data sources and Klips unlocks your data and enables you to control, manipulate, and transform it, leading you to unprecedented insights into your business.

  • Custom data sources: When you create a custom data source, you can either use the pre-built data source as a starting point from which to write your own query or you can write your own queries from the ground up and build a data source from scratch. You create custom-built data sources from the Service Connectors page, accessible from this link or from your list of data sources.

  • Custom Klips: Using our Klip Editor, you can construct and manipulate your data, including integrating multiple data sources, to produce unique, custom-built data visualizations. You create custom Klips from either your list of Klips or your Dashboard.

Regardless of whether you choose pre-built, custom-built, or a combination of both, before you can start building Klips and dashboards you need to connect to MailChimp data in Klipfolio.

How do I connect to MailChimp data in Klipfolio?

To connect your MailChimp data to Klipfolio, you will need your MailChimp API Key and data center.

To get the right data from MailChimp, you use your MailChimp API Key to authenticate your identity, and you use your data center in the queries provided by Klipfolio or in your own query when building data sources.

How do I find my MailChimp API Key and data center?

To find your MailChimp API Key and data center:

  1. Click the following link: Your MailChimp API Key
  2. Enter your MailChimp login credentials.
  3. Copy the number that displays in the API Key field. This is your MailChimp API Key.

Note: The characters following the dash at the end of your API Key are your data center. For example, us12.

How do I add a MailChimp pre-built data source?

To add a MailChimp pre-built data source:

  1. Navigate to the Service Connectors page in Klipfolio and choose MailChimp from the list.
  2. Select a pre-built data source from the left section of the Pick a Data Request page.
  3. Enter your MailChimp API Key and Data Center Name.
  4. If applicable, after Campaign Title, select a MailChimp campaign from the drop-down list.
  5. Click Get Data or, if you want to modify the pre-built data request, click Switch to Custom settings.
    Note: If you switch back to the Basic settings page after making changes in the Custom settings page, your changes will not be saved.

If you clicked Switch to Custom settings:

  1. On the Configure Data Source page, modify the Query URL to get the data you want. You can use the existing information in the Query URL text box as a base. It was auto-filled based on the pre-built data source you selected on the Pick a Data Request page.
  2. Click Get Resource.

How do I add MailChimp pre-built Klips?

In the Klip Gallery or, for White Label customers, in the Integration Gallery you can browse individual MailChimp pre-built Klips and add them to your dashboard. You replace the sample data that is included in pre-built Klips with your own MailChimp data by clicking the menu in the Klip and selecting Connect your data.

How do I create a MailChimp custom-built data source?

To create a MailChimp custom-built data source:

  1. Navigate to the Service Connectors page in Klipfolio and choose MailChimp from the list.
  2. On the Pick a Data Request page, click Create a custom MailChimp data source.
  3. Adjust the Query URL information, as noted on the Configure Data Source page, to replace any generic placeholder query information with your own.
    For example, replace <dataCenter> with your own data center.
  4. Edit the Query URL to return the data you need. Refer to the MailChimp API documentation for details.
  5. At Data Format, select JSON from the drop-down menu.
  6. At Method select GET from the drop-down menu.
  7. Expand Authentication (OAuth, 2-Step, X-WSSE, or Basic).
  8. At Type, select Basic Http Authentication from the drop-down menu.
  9. At Username, enter the letter'x'.
  10. At Password, enter your Mailchimp API Key without the data center.
    For example, if your MailChimp API Key normally reads ax6566x6506556xxx565zz56x5x6x5xxx-us12, omit the -us12 and use the remainder as your password.
  11. Click Get Resource.

If you would like to learn more about customizing MailChimp date ranges, click here.

If you want to edit a data source that you already created, check out How to edit or reconfigure a data source, and get step-by-step instructions.

How do I create a MailChimp data source from scratch?

You can choose to build a data source from scratch. Klipfolio connects to hundreds of services in the cloud that have a REST API. If you take the time to learn your service’s API to create queries for the data you want, your possibilities are endless. Here’s a quick overview video on APIs and Klipfolio:

  Klipfolio API's 101

If you need assistance using APIs, enlist a data analyst or developer.

Refer to the MailChimp API documentation to discover more data requests.

When you are happy with your query, click Get Resource, and then save and name your new data source. You're now ready to use it to build a MailChimp Klip.

See the reference table below for API related information and sample queries.

API Documentation MailChimp API documentation

Authentication Method

Basic HTTP Authentication
Response Format JSON
Sample Queries

For a list of MailChimp campaigns:

https://your-data-center.api.mailchimp.com/3.0/campaigns/

For all your MailChimp lists:

https://your-data-center.api.mailchimp.com/3.0/lists/

How do I edit MailChimp date ranges?

Many Klips that use MailChimp data need a date range that is dynamic (for example, past 30 days). In this section we're going to change the query from a fixed range to a dynamic one.

  1. Enter ?since_send_time={date.last30Days}at the end of your query URL.
  2. Enter &before_send_time={date.today} at the end of your new query URL (after the since_send_time parameter). Your query should look like this:
    • https://your-data-center.api.mailchimp.com/3.0/campaigns/?since_send_time={date.last30Days}&before_send_time={date.today}
  3. If you want to increase the number of records that the call returns (the default is 10), you can add the count parameter. For example:
    • https://your-data-center.api.mailchimp.com/3.0/campaigns/?since_send_time={date.last30Days}&before_send_time={date.today}&count=100

Common date range expressions:

  • {date.today}
  • {date.last30Days}
  • {date.startOfQuarter}

How do I create a MailChimp custom Klip?

You create custom Klips from either your list of Klips or your Dashboard. You choose a data visualization format, for example, a pie chart, gauge, or table, and decide whether you want to use an existing data source or create a new one. In the Klip Editor, there are limitless opportunities to modify, relate, and display your data. See the following related articles for more information and get building!

Related Links