Sign in
← GoHighLevel
GoHighLevel · Setup guide

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.

Using Claude or another AI assistant? Paste it this link: webhook-custom-fields.md. It's this guide as plain text with instructions for the assistant: it can create all 45custom fields for you through HighLevel's API (with a Private Integration token you give it), then walk you through the folder and the workflow, which only you can set up.
1

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, not First Source or firstSource.
Inbound Webhook is a HighLevel premium trigger. Once your agency enables premium triggers and actions, each sub-account gets 100 free executions; after that every execution — one per form submission — is billed at your agency's rate. Check Agency settings before you turn the workflow on for a busy form.
2

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.

3

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 nameField typeWebhook key
1First ChannelSingle linemtk_first_channel
2First SourceSingle linemtk_first_source
3First MediumSingle linemtk_first_medium
4First CampaignSingle linemtk_first_campaign
5First TermSingle linemtk_first_term
6First ContentSingle linemtk_first_content
7First Ad PlacementSingle linemtk_first_ad_placement
8First Landing PageSingle linemtk_first_landing_page
9First Landing Page GroupSingle linemtk_first_landing_page_group
10First QueryMulti linemtk_first_query
11First ReferrerMulti linemtk_first_referrer

Last touch

#Field nameField typeWebhook key
12Last ChannelSingle linemtk_last_channel
13Last SourceSingle linemtk_last_source
14Last MediumSingle linemtk_last_medium
15Last CampaignSingle linemtk_last_campaign
16Last TermSingle linemtk_last_term
17Last ContentSingle linemtk_last_content
18Last Ad PlacementSingle linemtk_last_ad_placement
19Last Landing PageSingle linemtk_last_landing_page
20Last Landing Page GroupSingle linemtk_last_landing_page_group
21Last QueryMulti linemtk_last_query
22Last ReferrerMulti linemtk_last_referrer

Click IDs & Meta cookies

#Field nameField typeWebhook key
23gclidSingle linemtk_gclid
24gbraidSingle linemtk_gbraid
25wbraidSingle linemtk_wbraid
26msclkidSingle linemtk_msclkid
27fbclidSingle linemtk_fbclid
28fbcSingle linemtk_fbc
29fbpSingle linemtk_fbp

Insights

#Field nameField typeWebhook key
30Journey StringMulti linemtk_journey_string
31Session CountSingle linemtk_session_count
32Pageview CountSingle linemtk_pageview_count
33Paid Touch CountSingle linemtk_paid_touch_count
34Last Paid TouchSingle linemtk_last_paid_touch
35Time Since Last Paid TouchSingle linemtk_time_since_last_paid_touch
36Time To ConversionSingle linemtk_time_to_conversion
37Page PathSingle linemtk_page_path
38Page URLMulti linemtk_page_url
39Conversion UnixSingle linemtk_conversion_unix
40Conversion DatetimeSingle linemtk_conversion_datetime
41Custom Conversion TimeSingle linemtk_custom_conversion_time
42BrowserSingle linemtk_browser
43OSSingle linemtk_os
44DeviceSingle linemtk_device
45Tracking HealthMulti linemtk_tracking_health
Already have some of these? If the sub-account came from a snapshot or an earlier install and a field with the same name already exists, reuse it — move it into the folder rather than creating a duplicate. Two fields with one name make step 5 a guessing game.
4

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.

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.

6

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.

When MTK adds a field, it appears in the table above on its own. Add it in HighLevel the same way (step 3), then re-select the Mapping Reference in the trigger with a request that carries the new key, and map it in the action. Until it's mapped, the value arrives at the webhook and is dropped.
Optional fields. Journey JSON (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.
This is the standard field map.A client's license can have fields switched off, renamed, or added. If yours has been customized, export it from the dashboard (Tag config → Field map → Export CSV) and create the fields from that list instead.