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.
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:
In this step you need ConvertKit form ID, you can grab this from form embed options as shown in the image below:
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.