WordPress Integration Guide
WordPress form plugins (WPForms, Gravity Forms, Contact Form 7) can POST directly to Trackly’s webhook — no Zapier needed.Method 1: WPForms Webhook (Recommended)
Step 1: Install WPForms + Webhooks Addon
- Install WPForms (Lite or Pro)
- Install the WPForms Webhooks addon (requires Pro plan), or use the free WPForms Zapier addon with a direct webhook URL
Step 2: Create your form
- Go to WPForms → Add New
- Add fields:
- Phone (type: Phone, name:
phone_number, required) - Consent Checkbox (required) with label: “I agree to receive SMS marketing messages. Msg & data rates may apply. Reply STOP to unsubscribe.”
- Phone (type: Phone, name:
- Optionally add: First Name, Last Name, Email
Step 3: Configure the webhook
- Go to Settings → Webhooks in your form editor
- Click Add New Webhook
- Set the Request URL to:
- Set Request Method to
POST - Set Request Format to
JSON - Add Request Headers:
X-Api-Key:trk_your_api_key_hereContent-Type:application/json
- Map your form fields:
- Phone →
phone_number - First Name →
first_name - Last Name →
last_name
- Phone →
- Add Additional Body fields:
list_id: your Trackly sending list ID (integer)consent_text: your TCPA consent language
Step 4: Test
Submit the form and verify the contact appears in your Trackly sending list.Method 2: Gravity Forms Webhook
- Install Gravity Forms + Gravity Forms Webhooks addon
- Go to Forms → Settings → Webhooks
- Add a webhook with URL:
https://api.tracklysms.com/api/v2/optins/webhook - Set method to
POST, format toJSON - Add header:
X-Api-Key: trk_your_api_key_here - Map fields the same way as WPForms above
Method 3: Iframe Embed
- Add a Custom HTML block to any page or post
- Paste:
- Replace
YOUR_PUBLIC_TOKENwith your opt-in configuration’s public token
Method 4: Script Tag
- Install a plugin that allows custom code (e.g., Insert Headers and Footers, WPCode)
- Add your script tag to the footer: