Campayn
Overview
The AFI plugin lets you connect your WordPress forms with Campayn, so new form submissions can be automatically added as subscribers to your Campayn mailing lists.
This is ideal for managing your newsletter signups and growing your email marketing list with ease.
โ Supported Features
-
Add contact to a selected Campayn mailing list
-
Map form fields to standard and custom Campayn contact fields
-
Support for multiple Campayn accounts
๐ง How To Setup
Step 1: Connect Your Campayn Account
Campayn uses API Key-based authentication. To connect your account:
-
Go to AFI โ Settings โ General
-
Enable Campayn and click Save Changes
-
A Campayn tab will appear โ click on it
-
Enter your API Key
๐ How to Get Your API Key:
-
Log in to your Campayn account
-
Go to Settings โ API
-
Copy the API Key
-
Paste it into the AFI Campayn tab
-
Click Save
You can add multiple Campayn accounts this way if needed.
Step 2: Create a New Integration
-
Navigate to AFI โ Add New
-
Youโll land on the New Integration setup screen
๐น Title
Choose a name for the integration, like โNewsletter Signup – Campaynโ
๐น Trigger
-
Form Provider: Choose your form plugin (e.g., Contact Form 7, WPForms, Elementor)
-
Form/Task Name: Select the form to connect
Step 3: Configure the Action
๐น Platform
Select Campayn
๐น Task
Choose Add Contact to List
This will send new form submissions to your selected Campayn mailing list.
Step 4: Map Fields
After selecting the task, configure the following:
๐น Campayn Account
Select the connected Campayn account from the dropdown.
๐น Mailing List
Choose the mailing list where you want to add the contact.
The plugin fetches your lists using the selected credentials.
๐น Subscriber Fields
Map your form fields to Campayn fields:
-
Email (required)
-
First Name
-
Last Name
-
Custom Fields (if any)
Use the dropdowns to match form fields with Campayn fields easily.
Step 5: Save Integration
Click Save Integration at the bottom of the page.
๐ Done! Now, whenever someone submits the connected form, their data will be sent directly to your selected Campayn list.
๐ Troubleshooting
If the integration isnโt working:
-
Go to AFI โ Log
-
Check the log entry related to your Campayn integration
Make sure that:
-
The API Key is correct and valid
-
The correct List is selected
-
Required fields like Email are mapped and filled
-
No API error is returned (e.g., permission denied, invalid data)
ย