GTM dataLayer: Technical Reference
Version 1 of the
dataLayercontract: the events Karpa’s intake form and Lab Order pages push for the tags in a Partner’s own Google Tag Manager container. Event names and their Conversion Events come from Karpa’s Conversion Event catalog.
Loading
Karpa loads the Partner’s GTM container (the standard GTM snippet, plus its <noscript>
iframe) on every intake page and every Lab Order page, for every visitor. Where events are
pushed:
- Intake forms: every event below.
- Follow-up and renewal forms: push
intake_form_started,intake_step_viewandintake_form_submitted; never pushintake_lead_captured,intake_checkout_vieworintake_payment_authorized. - Lab Order pages: the Lab Order events in the Lab Order event catalog, never an intake event.
- Patient Portal: no container, no events.
Karpa itself sends nothing to any ad platform. Everything a platform receives comes from the Partner’s own tags.
DataLayer
Events are pushed onto the standard window.dataLayer array:
window.dataLayer.push({ event: "<event-name>", event_id: "<uuid>", ...params });A push is skipped when no container is configured, so a missing container never breaks the form.
Privacy constraint
Karpa’s pushes carry only funnel and pricing values: the Program slug, the step number, id and label, and prices. They never include the patient’s name, email, phone, date of birth, address or answers. The Partner’s tags may still send page addresses and browser details as they normally do.
Event catalog
intake_form_started
Fires when the patient begins the intake form (step 1).
{ event: "intake_form_started", event_id: "<uuid>", // string, unique per push program: "<program-slug>", // string step: 1, // number step_id: "<page-id>", // string, e.g. "vitals" step_name: "<page-label>" // string, e.g. "Basic Info"}intake_step_view
Fires when the patient reaches a new step in the form.
{ event: "intake_step_view", event_id: "<uuid>", // string, unique per push program: "<program-slug>", // string step: <n>, // number, 2..N step_id: "<page-id>", // string, e.g. "medical-history" step_name: "<page-label>" // string, e.g. "Medical History"}intake_lead_captured
Fires when the patient’s contact details are saved at the contact step (the account step that asks for name, email and phone), once per intake submission within a browser session: re-saving the same step in that tab does not push it again, but a new tab or device can push it again. It does not fire if saving them fails. This event reports the Lead Conversion Event. It carries no contact details.
{ event: "intake_lead_captured", event_id: "<uuid>", // string, unique per push program: "<program-slug>" // string}intake_checkout_view
Fires when the patient reaches the checkout step. This event reports the InitiateCheckout Conversion Event.
{ event: "intake_checkout_view", event_id: "<uuid>", // string, unique per push program: "<program-slug>", // string priceCents: <n> // number, price in USD cents}intake_payment_authorized
Fires when the patient’s card is authorized at intake checkout. No money is charged yet: the patient is charged later, only if a provider approves the treatment. Initial intake checkouts only; a follow-up checkout does not push it. This event reports the SubmitApplication Conversion Event.
{ event: "intake_payment_authorized", event_id: "<uuid>", // string, unique per push program: "<program-slug>", // string priceCents: <n> // number, expected total after discounts, in USD cents (not collected yet)}For tag setup: this is a card authorization, not a purchase. Map it to Meta
SubmitApplicationand a Google Ads conversion action in the Other category (for example “Intake submitted”), never to Purchase or CompletePayment.
intake_form_submitted
Fires once when the patient’s submission completes (the form’s done screen or the confirmation page), for new intakes and for follow-ups. It does not fire if the submission fails. Because it fires on renewals too, don’t map it to an ad conversion.
{ event: "intake_form_submitted", event_id: "<uuid>", // string, unique per push program: "<program-slug>" // string}Field reference
| Field | Type | Description |
|---|---|---|
event_id |
string | Unique ID of this push (UUID). For an event that reports a Conversion Event, pass it to your tag as the Meta Event ID (eventID) or the Google Ads Transaction ID, so copies of this one push (for example browser and server-side GTM) are counted once. Each push has its own ID |
program |
string | Program slug identifier (e.g. weight-loss) |
step |
number | 1-based intake form step index |
step_id |
string | Intake page/screen id (e.g. medical-history) — intake_step_view / intake_form_started |
step_name |
string | Human screen label (e.g. Medical History) — intake_step_view / intake_form_started |
priceCents |
number | Checkout price in USD cents (integer) |
Conversion Event mapping
dataLayer event |
Conversion Event | Meta standard event | Suggested Google event name |
|---|---|---|---|
intake_lead_captured |
Lead | Lead |
generate_lead |
intake_checkout_view |
InitiateCheckout | InitiateCheckout |
begin_checkout |
intake_payment_authorized |
SubmitApplication | SubmitApplication |
submit_application |
The Google column is a suggested event name for your tag or conversion action, not a Google Ads category. The categories to pick are in the GTM guide.
intake_form_started, intake_step_view and intake_form_submitted are funnel events
with no Conversion Event. Intake has no dataLayer event for Purchase: its money is collected
later, server-side, at settlement. A Lab Order is paid at checkout, so it reports Purchase with
lab_order_purchase (see the Lab Order Conversion Event mapping).
Lab Order event catalog
A Lab Order belongs to no Program, so its events carry no program. They never carry the panel
ordered, its requisition code or anything the patient typed: a panel’s name can reveal a
condition. A Lab Order pushes no Lead (its contact details are not saved until it is paid) and
no SubmitApplication (it is paid at checkout, so nothing is only authorized).
lab_order_started
Fires when the Lab Order flow opens (its first step).
{ event: "lab_order_started", event_id: "<uuid>" // string, unique per push}lab_order_checkout_view
Fires when the patient reaches the Lab Order’s paying step (“Review & pay”). This event reports the InitiateCheckout Conversion Event.
{ event: "lab_order_checkout_view", event_id: "<uuid>", // string, unique per push priceCents: <n> // number, the chosen panel's price in USD cents}lab_order_purchase
Fires once, when the Lab Order is paid for and placed (its confirmation screen). The card is charged at checkout, so this is money collected. It does not fire if the card is declined, or if the lab refuses the order and the charge is refunded. This event reports the Purchase Conversion Event.
{ event: "lab_order_purchase", event_id: "<uuid>", // string, unique per push priceCents: <n> // number, the amount charged in USD cents}Lab Order Conversion Event mapping
dataLayer event |
Conversion Event | Meta standard event | Suggested Google event name |
|---|---|---|---|
lab_order_checkout_view |
InitiateCheckout | InitiateCheckout |
begin_checkout |
lab_order_purchase |
Purchase | Purchase |
purchase |
lab_order_started is a funnel event with no Conversion Event.
Notes
- Event names and fields are additive-only within version 1. New fields may be added in minor revisions; existing fields will not be removed or repurposed without a new version.
priceCentsis the expected price, not money collected. Onintake_payment_authorizedit is the amount authorized, after discounts. Onintake_checkout_viewit is the price shown when checkout loads, before any discount code is applied.