Fields
Funnel lifecycle
- Active / Inactive — normal operational states.
- Marked for Deletion — a dev TODO: the funnel must be removed from its external hosting (e.g. Hostinger). The funnel stays visible in the main list with a “Marked for Deletion” badge so the dev team knows what to clean up. Marking is blocked while a live campaign still references the funnel.
- Deleted — once the hosting is actually removed, the funnel is moved to
the Deleted section (soft delete via
deletedAt). The record is kept so historical reports keep resolving the funnel name.
Why soft delete? Hard-deleting a funnel breaks historical reporting
(click/conversion joins against the funnel name) and nulls campaigns.funnel_id.
Soft delete preserves both. Permanent delete is an explicit, audited action
only available from the Deleted section.
Landing Pages
Each funnel contains one or more landing pages:Selection Priority
lpparameter → specific landing pagemoparameter → match by name- Weighted random from active pages
