How Wistia populates Marketo custom field
How Wistia populates Marketo custom fields
When you connect Marketo to Wistia with custom fields enabled, Wistia creates a set of custom lead fields in your Marketo instance — and writes to them under specific conditions. If you're seeing Marketo web activity for a lead but the Wistia custom fields (like Wistia Last Engagement) stay blank, this page explains why: different viewer actions write different data, and a plain video view never writes lead fields at all.
This is a developer reference for what data Wistia sends and when. For connecting the integration and mapping fields in the Marketo UI, see the Marketo integration guide in the Help Center.
The three events that write to a Marketo lead
Wistia upserts a Marketo lead (and writes custom fields) from exactly three viewer events:
| Event | What triggers it | Lead is upserted? |
|---|---|---|
| Form submission | A viewer submits a Wistia Form (email capture) on an embedded player | Yes |
| Live registration | A viewer registers for a Wistia webinar | Yes |
| Live attendance | A viewer attends a Wistia webinar | Yes |
A plain video view is not on this list. Watching an embedded video — even by a known lead — does not upsert a Marketo lead or write any Wistia custom field on its own. That's why you can see Marketo web activity for a page while the Wistia lead fields stay empty: the view generated activity, but no lead-writing event fired.
A lead must have an email for any write to happen. Wistia gets the email from the form the viewer submitted or the webinar they registered for — not from the video player itself.
Which fields each event writes
Not every event writes every field. This is the key to the "blank field" puzzle.
Form submission
A Wistia Form submission writes only the identity fields, plus any custom form fields you've mapped to Marketo:
email,firstName,lastNameleadSource→Wistia Video: <form name>- Any custom Wistia Form fields you mapped to Marketo fields
A form submission does not write engagement, UTM, IP, or referrer fields. If a lead only ever submitted a form, Wistia Last Engagement will be blank — that's expected.
Live registration
Webinar registration writes identity plus richer fields:
email,firstName,lastName,company,phone,title,countryleadSource→Wistia Live Stream: <event title>- Wistia Live Last Registered, Wistia Live Last Registered Event Name
- Any mapped custom registration fields, plus UTM / IP / referrer fields
Live attendance
Webinar attendance writes the most. In practice it's the only event that fills Wistia Last Engagement and Wistia Last Played Time: those fields are eligible on registration too, but a registration carries no watch data yet, so the values are empty and skipped until someone actually attends.
email,leadSource→Wistia Live Stream: <event title> - Attendee- Wistia Last Engagement, Wistia Last Played Time
- Wistia Live Last Attended, Wistia Live Last Attended Event Name
- Wistia Live Last Poll Response Count, Wistia Live Last Chat Count, Wistia Live Last Link Click Count
- UTM (campaign / source / medium), referrer, and IP (country / region / city)
The full custom field list
These are the custom lead fields Wistia creates and writes in Marketo (field names as they appear in Marketo):
| Field | Written by |
|---|---|
| Wistia Last Engagement | Live attendance (in practice) |
| Wistia Last Played Time | Live attendance (in practice) |
| Wistia Last UTM Campaign / Source / Medium | Live registration & attendance |
| Wistia Last Referrer | Live registration & attendance |
| Wistia Last IP Country / Region / City | Live registration & attendance |
| Wistia Live Last Registered / Registered Event Name | Live registration |
| Wistia Live Last Attended / Attended Event Name | Live attendance |
| Wistia Live Last Poll Response Count | Live attendance |
| Wistia Live Last Chat Count | Live attendance |
| Wistia Live Last Link Click Count | Live attendance |
| Wistia User Key | All lead-writing events |
"I see web activity but the fields are blank" — checklist
If a lead has Marketo web activity but empty Wistia custom fields, check, in order:
- What event did the lead generate? Only form submissions and live registration/attendance write fields. A plain video view writes none. If the lead only watched a video (no form, no webinar), blank fields are expected behavior.
- For Wistia Last Engagement specifically: in practice only live attendance fills it. The field is also mapped to webinar registration, but a registration carries no watch data, so it stays empty until the lead attends. A lead who submitted a form but never attended a webinar will never have this field populated.
- Are custom fields enabled on the integration? The custom Wistia fields are only created and written when custom fields is turned on during connection. Without it, Wistia writes only standard lead fields (email, name, lead source).
- Does the lead have an email? No email on the event means no upsert. Forms and webinar registration supply the email; the player does not.
What about per-video engagement?
Individual video plays are recorded in Marketo — but as Wistia Activity records (a custom activity type), not as lead-field values. Activities and lead fields are separate surfaces in Marketo: activities give you the timeline of what a lead watched; the Wistia Last... lead fields are summary values written only by the events above. Don't expect a video view to update a Wistia Last... field.