Configuration

Configure Leads via the control panel or a config/leads.php file. Values in the config file override control panel settings.

Config File

<?php
return [
    'autoInjectScript' => true,
    'defaultButtonColor' => '#F9C723',
    'defaultBackgroundColor' => '#ffffff',
    'dataRetentionDays' => 365,
    'enableHoneypot' => true,
    'rateLimitPerMinute' => 5,
];

Settings

SettingDefaultDescription
autoInjectScripttrueAutomatically inject active popups on all frontend pages
defaultButtonColor'#F9C723'Default button color applied to new popups
defaultBackgroundColor'#ffffff'Default background color applied to new popups
enableHoneypottrueEnable honeypot spam protection on forms
rateLimitPerMinute5Maximum form submissions per minute, per visitor
dataRetentionDays365How long to keep submission data before pruning