Download the PHP package justinholtweb/craft-leads without Composer
On this page you can find all versions of the php package justinholtweb/craft-leads. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download justinholtweb/craft-leads
More information about justinholtweb/craft-leads
Files in justinholtweb/craft-leads
Package craft-leads
Short Description Popup and lead generation plugin for Craft CMS 5. Create modals, slide-ins, notification bars, and inline forms with targeting rules, email integrations, and analytics.
License proprietary
Informations about the package craft-leads
Leads — Popup & Lead Generation for Craft CMS
Popup and lead generation plugin for Craft CMS 5. Create modals, slide-ins, notification bars, and inline forms with targeting rules, email service integrations, and analytics — all natively within your control panel.
Requirements
- Craft CMS 5.3.0 or later
- PHP 8.2 or later
Installation
Features
| Feature | Description |
|---|---|
| Popup types | Modal, slide-in, notification bar, inline form |
| Triggers | Time delay, scroll percentage, exit intent, click |
| Templates | 8 built-in designs (clean, bold, minimal) |
| Integrations | Mailchimp, ConvertKit, webhook |
| Analytics | Impressions, conversions, conversion rates |
| Targeting | Page URLs, device type, visitor frequency |
| Spam protection | Honeypot field, rate limiting |
| Queue sync | Background sync to email providers via Craft queue |
Configuration
All settings are available in the control panel under Leads → Settings, or via config/leads.php:
Usage
Auto-Inject (Default)
When autoInjectScript is enabled, active popups are automatically injected on all frontend pages. No template changes needed.
Manual Twig Functions
Disable auto-inject and add to your template manually:
Template Variable
Access popup data via the craft.leads variable:
Popup Types
| Type | Description | Position Options |
|---|---|---|
modal |
Centered overlay with backdrop | — |
slidein |
Corner panel | bottom-right, bottom-left |
bar |
Full-width notification strip | top, bottom |
inline |
Embedded in page content | — |
Trigger Types
| Trigger | Value | Description |
|---|---|---|
time |
Seconds (e.g., 3) |
Show after N seconds |
scroll |
Percentage (e.g., 50) |
Show when user scrolls past N% |
exit |
— | Show on exit intent (mouse leaves viewport) |
click |
CSS selector (e.g., .cta-btn) |
Show when element is clicked |
Built-in Templates
8 templates across 3 style families:
- Clean — Light backgrounds, subtle styling:
clean-modal,clean-slidein,clean-bar - Bold — Dark backgrounds, high contrast:
bold-modal,bold-slidein,bold-bar - Minimal — Stripped down, content-first:
minimal-modal,minimal-inline
Email Integrations
Each popup can sync submissions to an email service provider. Syncing happens in the background via the Craft queue.
Mailchimp
Set integrationProvider to mailchimp and provide:
apiKey— Your Mailchimp API key (ends with-usX)listId— The audience/list ID to add subscribers to
ConvertKit
Set integrationProvider to convertkit and provide:
apiSecret— Your ConvertKit API secretformId— The form ID to subscribe to
Webhook
Set integrationProvider to webhook and provide:
webhookUrl— URL to receive a POST with{ email, name, custom_fields, timestamp }
Analytics
Leads tracks three daily metrics per popup:
- Impressions — How many times the popup was displayed
- Conversions — How many form submissions were made
- Closes — How many times the popup was dismissed
Stats are aggregated daily (one row per popup per day) for efficient querying. View them on the Leads → Dashboard page with date range filtering.
Submissions
All form submissions are stored in the leads_submissions table and viewable under Leads → Submissions. Export as CSV for use in other tools.
Permissions
| Permission | Description |
|---|---|
leads:accessPlugin |
Access the Leads CP section |
leads:managePopups |
Create, edit, delete popups |
leads:viewSubmissions |
View submissions list |
leads:exportSubmissions |
Export submissions as CSV |
leads:deleteSubmissions |
Delete individual submissions |
leads:viewDashboard |
View the analytics dashboard |
leads:manageSettings |
Modify plugin settings |
Events
Listen to events in a custom module or plugin:
Programmatic Usage
License
This plugin is proprietary software. A valid license is required for each installation. Licenses can be purchased at plugins.craftcms.com.