contact form 7 integration with ConvertKi without using plugint

How to integrate Contact Form 7 with ConvertKit without using plugin

ConvertKit is a email marketing software for creators and getting popular among the marking folks. Contact Form 7 is actively installed in over 5 million WordPress websites.

Here’s how to integrate CF7 with ConvertKit, so that the sender is automatically subscribed to a ConvertKit list when they submit form. Integration is really simple and you can do that in few steps without using any plugin. So let’s make it happen.

Step 1:

You need ConvertKit API keys so we can make call to subscribe function. You can grab your API key from account settings option in ConvertKit. see screenshot below:

Step 2:

In this step you need ConvertKit form ID, you can grab this from form embed options as shown in the image below:

Step 3:

This is the final step and now you need to add PHP code to the functions.php file. I highly recommend to use child theme otherwise your code will be overwritten upon updating parent theme.

Please don’t forget to update API key, form ID and field names in the code below.

About Javed Iqbal

Mr. Javed Iqbal is a senior php developer and co-founder at MZ Creative Studio. His experience is more than 8 years in this field. He loves working on challenging projects.

3 thoughts on “How to integrate Contact Form 7 with ConvertKit without using plugin

  1. Hi,
    Not working.
    Using ‘Content-Type: application/json; charset=utf-8’ instead (See API docs) made it work. Also, note that you have a typo on line 12 ( ‘;’ at the end of the ID).

    Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *

Do you have a website project you’d like to discuss?

Get in touch