Skip to content

Events and dataLayer fields

Reference for web developers. Which events the configurator pushes to the dataLayer through the tracking script, and which fields each event carries.

ProFor developers2 min read
On this page2
  1. Events
  2. Fields
Available on Pro.

The configurator sends its events with postMessage to the page it sits in. The tracking script (mp-tracking.js) pushes them to window.dataLayer and also dispatches a meetpiloot event on document, with the original message in detail.

Events

EventWhen
meetpiloot_configurator_startedThe visitor opens the configurator.
meetpiloot_product_selectedThe visitor chooses a product and, where relevant, a type (conservatory, carport and so on).
meetpiloot_step_completedThe visitor completes a step, with the step number and name.
meetpiloot_option_selectedThe visitor chooses an option in a step.
meetpiloot_lead_submittedThe visitor sends the enquiry. This is the conversion, with a value and transaction ID.

Fields

Each event contains the fields below, as far as they are known for that event. Use them in GTM as dataLayer variables.

FieldTypeExample
mp_product_typetextveranda, lamellen
mp_veranda_subtypetexttuinkamer, serre, carport
mp_stepnumber3
mp_step_nametextcolor, placement
mp_total_stepsnumber12
mp_selected_optiontextAnthracite
mp_session_idtextuuid
mp_lead_idtextuuid, only with lead_submitted
mp_company_slugtextsmith-verandas
mp_valuenumber8086, only with lead_submitted
mp_currencytextEUR
mp_transaction_idtextuuid, for deduplication across platforms
mp_event_idtextmp-<lead ID>-Lead, only on lead_submitted: use it as the Meta Pixel eventID. meetpiloot sends the same ID server-side, so Meta counts the lead once
mp_em_sha256, mp_ph_sha256textSHA-256 of email and phone, for enhanced conversions
mp_gclid, mp_gbraid, mp_wbraidtextGoogle Ads click IDs
mp_msclkidtextMicrosoft Ads click ID
mp_fbclidtextMeta click ID
mp_ttclidtextTikTok click ID
mp_utm_source to mp_utm_contenttextthe five UTM parameters
mp_timestampnumbertime in milliseconds

Every lead arrives once as meetpiloot_lead_submitted, even when the visitor submits twice or reloads the page. Use mp_transaction_id as the transaction_id in GA4 and as the order ID in Google Ads, so a lead is never counted twice there either.

Fields without a value are empty or missing. Click IDs and UTM parameters come from the address of your own page, even if the visitor first landed on a different page of your site: the script keeps them for the whole session.

Stuck?

Email us or open a ticket from your dashboard. We reply within 1 to 2 working days.