Lead Capture
StorePilot can capture lead information from WooCommerce checkout forms — even before the customer completes the purchase. This lets you follow up with visitors who abandoned their cart.
How It Works
The plugin listens for input and change events on WooCommerce checkout fields. As the visitor types, field values are buffered and sent to the Platform.
Capturing happens in two phases:
- Client-side (JavaScript) — Captures name, email, phone number as the visitor fills in the form
- Server-side enrichment (PHP) — After the JavaScript payload is received by the WordPress proxy, PHP adds:
wp_user_id— WordPress user ID if the visitor is logged in- Cart contents from WooCommerce (
WC()->cart) - Cart total value
The enriched lead is then forwarded to the Platform.
Captured Fields
| Field | Source |
|---|---|
| First name | Checkout billing form |
| Last name | Checkout billing form |
| Checkout billing form | |
| Phone | Checkout billing form |
| Cart items | WooCommerce (server-side) |
| Cart total | WooCommerce (server-side) |
| WordPress user ID | WordPress session (server-side) |
| Page URL at capture time | JavaScript |
Lead Statuses
| Status | Meaning |
|---|---|
new | Just captured, not yet processed |
contacted | A team member has reached out |
converted | Lead became a paying customer |
lost | No longer interested |
You can update lead statuses in the Dashboard and add internal notes.
Privacy
Lead capture requires your Privacy Policy to clearly disclose that you collect form data before checkout completion. The provided Privacy Policy and Terms of Service templates include the required disclosures.
Consider adding a notice near the checkout form:
"Your information may be saved to allow us to follow up if your order is not completed. See our Privacy Policy."
This is considered best practice and is required in most jurisdictions.
GDPR / Opt-in Consideration
In EU/EEA jurisdictions, capturing personal data before explicit consent may require a cookie consent mechanism or an explicit opt-in checkbox near the checkout form.
See GDPR Compliance for detailed guidance.
WooCommerce Requirement
Lead capture requires WooCommerce 7.0+. If WooCommerce is not active, this feature is silently disabled.