Download the PHP package isapp/statamic-lead-insights without Composer

On this page you can find all versions of the php package isapp/statamic-lead-insights. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statamic-lead-insights

Lead Insights for Statamic

Know where your leads come from — without sacrificing their privacy.

Lead Insights automatically captures UTM parameters, referrers, and landing pages from your visitors and attaches them to Statamic form submissions. See which campaigns, sources, and pages drive real conversions — right from your Control Panel dashboard.

No database required. No third-party scripts. No cookies without consent.


Features

Free vs Pro

Feature Free Pro
UTM capture & form enrichment
Consent gating (EU-first)
Configurable cookie & attribution key
Leads by Source widget
Leads by Campaign widget
Leads by Form widget
Form → Source Breakdown widget
CSV export
Data retention & prune command
First-touch + last-touch attribution

Installation

The addon registers automatically via Statamic's addon discovery.

How It Works

1. Capture — A lightweight middleware reads UTM parameters, the referrer, and the landing URL on every page visit. If consent is given, it stores the data in a first-party cookie.

2. Enrich — When a visitor submits a Statamic form, the attribution payload is automatically attached to the submission. No form changes needed.

3. Visualize — Dashboard widgets show which sources, campaigns, and forms drive the most leads. Export the data as CSV for deeper analysis.

Configuration

All settings are managed in the Control Panel under Addons → Lead Insights.

General

Setting Default Description
enabled true Enable or disable the addon globally
attribution_key __attribution Key used to store attribution data on submissions
cookie_name lead_insights_attribution Name of the first-party cookie
cookie_ttl_days 30 Days the attribution cookie persists

Consent / GDPR

Setting Default Description
consent_required true Require consent before storing cookies
consent_cookie_name Cookie name to check for marketing consent
consent_cookie_value Expected value (empty = presence check only)
store_landing_without_consent true Store landing URL even without consent
store_referrer_without_consent false Store referrer without consent

Reporting

Setting Default Description
top_n 10 Maximum rows shown in dashboard widgets
default_date_range_days 30 Default date range for widgets

Retention (Pro)

Setting Default Description
retention_days 365 Days to keep attribution data before pruning
prune_schedule_enabled false Enable automatic scheduled pruning
prune_schedule_frequency daily How often to prune: daily, weekly, or monthly
prune_schedule_time 02:00 Time of day to run (HH:MM, 24-hour format)

Widgets

Widgets are registered automatically but need to be added to your dashboard. Add them in config/statamic/cp.php:

Leads by Source (Free)

Groups form submissions by utm_source — see which traffic sources generate the most leads.

Leads by Campaign (Pro)

Groups submissions by utm_campaign — measure which campaigns convert.

Leads by Form (Pro)

Groups submissions by form handle — find out which forms get the most attributed leads.

Form → Source Breakdown (Pro)

Select a specific form and see a per-source breakdown. Configure the form handle in widget settings.

All widgets display a table with Label, Leads, and Share % columns, filtered by the configured date range.

CSV Export (Pro)

Export any widget's data as a CSV file. Available export types:

Access exports from the Control Panel or via:

Requires the Export Lead Insights permission.

Data Retention (Pro)

Remove old attribution data while keeping form submissions intact:

This strips the __attribution key from submissions older than the configured retention_days (default: 365). The submissions themselves are preserved.

Override the retention period per run:

Automatic scheduling

Enable automatic pruning in Addons → Lead Insights → Retention. Choose a frequency (daily, weekly, or monthly) and a time of day. The addon registers the schedule automatically — no changes to routes/console.php needed.

Make sure php artisan schedule:run is set up in your server's crontab.

Privacy & GDPR

Lead Insights is designed EU-first. Consent is required by default — no cookie is set and no UTM data is stored until consent is detected.

What is NOT collected

Cookie properties

Consent integration

Lead Insights works with any cookie-based consent management platform (Cookiebot, CookieYes, Complianz, etc.). Configure the consent cookie name and expected value in settings. No built-in consent banner — it respects your existing setup.

Without consent

When consent_required is true (default) and no consent is detected:

Permissions

Permission Edition Description
View Lead Insights Free + Pro Access dashboard widgets
Export Lead Insights Pro Download CSV exports

Assign permissions to roles in CP → Users → Roles.

Requirements


All versions of statamic-lead-insights with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
statamic/cms Version ^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package isapp/statamic-lead-insights contains the following files

Loading the files please wait ...