Custom fields for webhook forms
For a form that isn't a GHL form — your own site form, Webflow, custom HTML, anything — that sends its submissions to GoHighLevel through an Inbound Webhook workflow. The tag already puts the mtk_* values on the form; this guide gives each one a home on the GHL contact record so nothing arrives and gets thrown away. Using a GHL form embedded on the page instead? Follow the main GoHighLevel guide.
Before you start
- The MTK tag is installed on the site and the form carries the hidden
mtk_*fields — see the install guide for your form's platform in the Attribution docs. - The form (or the backend that receives it) can POST the submission to a URL as JSON. HighLevel's Inbound Webhook accepts JSON only — a form-encoded post needs converting first (in your own endpoint, Zapier, Make, or similar).
- Every submission includes an email or phone. HighLevel needs one of them to create or update the contact.
- Each
mtk_*value is sent under its exact key — e.g.mtk_first_source, notFirst SourceorfirstSource.
Create an “MTK Attribution” folder
In the sub-account, go to Settings → Custom Fields, make sure the Contact object is selected, open Folders, and click Create folder. Name it MTK Attribution and save. Keeping every MTK field in one folder keeps them together on the contact record and easy to find when you map them in step 5.
Create the 45 contact custom fields
Still in Settings → Custom Fields (Contact), click Create field for each row below, in order:
- Field type — as listed. Multi line for values that run long or contain line breaks, Single line for everything else. Keep counts as text too — don't pick Number.
- Field name— exactly as listed, with no “MTK” prefix. The folder already says what they are, and these are the labels your client reads on the contact.
- Folder —
MTK Attribution.
Then click Create custom field. Work down the list in order — first touch, then last touch, then IDs, then insights — so the record reads as one story: where they first came from, what brought them back, the IDs for offline conversion import, and the context around the conversion.
First touch
| # | Field name | Field type | Webhook key |
|---|---|---|---|
| 1 | First Channel | Single line | mtk_first_channel |
| 2 | First Source | Single line | mtk_first_source |
| 3 | First Medium | Single line | mtk_first_medium |
| 4 | First Campaign | Single line | mtk_first_campaign |
| 5 | First Term | Single line | mtk_first_term |
| 6 | First Content | Single line | mtk_first_content |
| 7 | First Ad Placement | Single line | mtk_first_ad_placement |
| 8 | First Landing Page | Single line | mtk_first_landing_page |
| 9 | First Landing Page Group | Single line | mtk_first_landing_page_group |
| 10 | First Query | Multi line | mtk_first_query |
| 11 | First Referrer | Multi line | mtk_first_referrer |
Last touch
| # | Field name | Field type | Webhook key |
|---|---|---|---|
| 12 | Last Channel | Single line | mtk_last_channel |
| 13 | Last Source | Single line | mtk_last_source |
| 14 | Last Medium | Single line | mtk_last_medium |
| 15 | Last Campaign | Single line | mtk_last_campaign |
| 16 | Last Term | Single line | mtk_last_term |
| 17 | Last Content | Single line | mtk_last_content |
| 18 | Last Ad Placement | Single line | mtk_last_ad_placement |
| 19 | Last Landing Page | Single line | mtk_last_landing_page |
| 20 | Last Landing Page Group | Single line | mtk_last_landing_page_group |
| 21 | Last Query | Multi line | mtk_last_query |
| 22 | Last Referrer | Multi line | mtk_last_referrer |
Click IDs & Meta cookies
| # | Field name | Field type | Webhook key |
|---|---|---|---|
| 23 | gclid | Single line | mtk_gclid |
| 24 | gbraid | Single line | mtk_gbraid |
| 25 | wbraid | Single line | mtk_wbraid |
| 26 | msclkid | Single line | mtk_msclkid |
| 27 | fbclid | Single line | mtk_fbclid |
| 28 | fbc | Single line | mtk_fbc |
| 29 | fbp | Single line | mtk_fbp |
Insights
| # | Field name | Field type | Webhook key |
|---|---|---|---|
| 30 | Journey String | Multi line | mtk_journey_string |
| 31 | Session Count | Single line | mtk_session_count |
| 32 | Pageview Count | Single line | mtk_pageview_count |
| 33 | Paid Touch Count | Single line | mtk_paid_touch_count |
| 34 | Last Paid Touch | Single line | mtk_last_paid_touch |
| 35 | Time Since Last Paid Touch | Single line | mtk_time_since_last_paid_touch |
| 36 | Time To Conversion | Single line | mtk_time_to_conversion |
| 37 | Page Path | Single line | mtk_page_path |
| 38 | Page URL | Multi line | mtk_page_url |
| 39 | Conversion Unix | Single line | mtk_conversion_unix |
| 40 | Conversion Datetime | Single line | mtk_conversion_datetime |
| 41 | Custom Conversion Time | Single line | mtk_custom_conversion_time |
| 42 | Browser | Single line | mtk_browser |
| 43 | OS | Single line | mtk_os |
| 44 | Device | Single line | mtk_device |
| 45 | Tracking Health | Multi line | mtk_tracking_health |
Add the Inbound Webhook trigger and send a test
Go to Automation → Workflows, create a workflow from scratch, and add the Inbound Webhooktrigger. HighLevel shows a unique webhook URL — copy it and point your form's submission (or your backend, Zapier, or Make) at it.
HighLevel needs one real request before it knows what the payload looks like. Send this test — replace YOUR_INBOUND_WEBHOOK_URL with the URL you copied:
curl -X POST "YOUR_INBOUND_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d '{
"email": "mtk-webhook-test@example.com",
"first_name": "MTK",
"last_name": "Webhook Test",
"mtk_first_channel": "TEST First Channel",
"mtk_first_source": "TEST First Source",
"mtk_first_medium": "TEST First Medium",
"mtk_first_campaign": "TEST First Campaign",
"mtk_first_term": "TEST First Term",
"mtk_first_content": "TEST First Content",
"mtk_first_ad_placement": "TEST First Ad Placement",
"mtk_first_landing_page": "TEST First Landing Page",
"mtk_first_landing_page_group": "TEST First Landing Page Group",
"mtk_first_query": "TEST First Query",
"mtk_first_referrer": "TEST First Referrer",
"mtk_last_channel": "TEST Last Channel",
"mtk_last_source": "TEST Last Source",
"mtk_last_medium": "TEST Last Medium",
"mtk_last_campaign": "TEST Last Campaign",
"mtk_last_term": "TEST Last Term",
"mtk_last_content": "TEST Last Content",
"mtk_last_ad_placement": "TEST Last Ad Placement",
"mtk_last_landing_page": "TEST Last Landing Page",
"mtk_last_landing_page_group": "TEST Last Landing Page Group",
"mtk_last_query": "TEST Last Query",
"mtk_last_referrer": "TEST Last Referrer",
"mtk_gclid": "TEST gclid",
"mtk_gbraid": "TEST gbraid",
"mtk_wbraid": "TEST wbraid",
"mtk_msclkid": "TEST msclkid",
"mtk_fbclid": "TEST fbclid",
"mtk_fbc": "TEST fbc",
"mtk_fbp": "TEST fbp",
"mtk_journey_string": "TEST Journey String",
"mtk_session_count": "TEST Session Count",
"mtk_pageview_count": "TEST Pageview Count",
"mtk_paid_touch_count": "TEST Paid Touch Count",
"mtk_last_paid_touch": "TEST Last Paid Touch",
"mtk_time_since_last_paid_touch": "TEST Time Since Last Paid Touch",
"mtk_time_to_conversion": "TEST Time To Conversion",
"mtk_page_path": "TEST Page Path",
"mtk_page_url": "TEST Page URL",
"mtk_conversion_unix": "TEST Conversion Unix",
"mtk_conversion_datetime": "TEST Conversion Datetime",
"mtk_custom_conversion_time": "TEST Custom Conversion Time",
"mtk_browser": "TEST Browser",
"mtk_os": "TEST OS",
"mtk_device": "TEST Device",
"mtk_tracking_health": "TEST Tracking Health"
}'Every MTK value in it is TESTplus that field's own name, which is what makes the check in step 6 conclusive. Back in the trigger, open Mapping Reference, pick the request you just sent (the newest is at the top), confirm the body shows the mtk_* keys, and click Save Trigger.
Prefer to test with the real form? Submit it once from a URL like ?utm_source=google&utm_medium=cpc&utm_campaign=test and select that request instead. Just make sure the request you pick contains every mtk_*key — a key missing from the mapping reference won't appear in the picker in step 5.
Map each key in the Create / Update Contact action
After you save the trigger, HighLevel takes you to the Create / Update Contact action. Map the contact basics first — Email, Phone, first and last name — from the matching keys in your payload.
Then add each field from the MTK Attribution folder and set its value to the matching key from the Inbound Webhook values in the picker: mtk_first_channel → First Channel, mtk_first_source → First Source, and so on down the table in step 3. The webhook key column is exactly what to look for in the picker. Save the action and Publish the workflow.
Verify
With the workflow published, send the step 4 test request once more, then open the MTK Webhook Test contact in HighLevel. Every field in the MTK Attribution folder should read TEST followed by its own name — First Source says TEST First Source, gclid says TEST gclid.
- A field showing a different name is mapped to the wrong key — fix that one mapping in step 5.
- An empty fieldwasn't mapped, or its key wasn't in the mapping reference — re-select the reference in the trigger, then map it.
- No contact at all— the request had no email or phone, or the workflow isn't published.
Delete the test contact, then submit the real form from a test campaign URL and confirm real values arrive. Still empty on real submissions but fine on the test? The form isn't sending the mtk_* keys — see Troubleshooting.
mtk_journey_json, Multi line) and Attribution Summary (mtk_attribution_summary, Multi line) aren't in the standard set — everything they hold already arrives in the individual fields. Add them only if the client specifically wants them, the same way as the rest.