Tracking Integrations (GTM dataLayer): Setup Guide
Tracking Integrations (GTM dataLayer): Setup Guide
Status: Live. Karpa loads your Google Tag Manager container on every intake page (including follow-up/renewal forms) and pushes no-PHI dataLayer events. You configure GA4, Meta Pixel, or TikTok Pixel tags inside your own GTM container.
What this is, in plain terms
Karpa doesn’t connect directly to Google Analytics, Meta, or TikTok. Instead, Karpa loads your GTM container on every intake page and pushes events into the dataLayer. You add tags for GA4, Meta Pixel, or TikTok Pixel inside your own GTM container and set the trigger to one of the events below.
These events only carry the program name, form step, and price. They never carry patient name, email, date of birth, address, or answers.
The events
| Event | Fires when |
|---|---|
intake_form_started |
The patient begins the intake form |
intake_step_view |
The patient reaches a new step in the form |
intake_checkout_view |
The patient reaches the checkout step |
intake_purchase |
The patient completes payment (initial or renewal) |
intake_form_submitted |
The patient reaches the confirmation page |
For the exact data payload each event carries, hand your engineer the technical reference.
Set up Google Analytics 4 (GA4)
- In GTM, add a new tag → GA4 Configuration (or GA4 Event tag).
- Set the Measurement ID from your GA4 property.
- Set the trigger to a Custom Event matching e.g.
intake_purchase. - Map the dataLayer variables (e.g.
program,priceCents) to GA4 event params.
Set up Meta Pixel
- In GTM, add a new tag using the Meta Pixel template (or custom HTML).
- Set the trigger to
intake_purchasefor a Purchase event. - Optionally add
intake_form_startedfor a Lead event.
Set up TikTok Pixel
- In GTM, add the TikTok Pixel tag template (from the GTM Community Template Gallery).
- Set the trigger to
intake_purchasefor a CompletePayment event. - Optionally add
intake_form_startedfor a SubmitForm event.