Skip to content

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)

  1. In GTM, add a new tag → GA4 Configuration (or GA4 Event tag).
  2. Set the Measurement ID from your GA4 property.
  3. Set the trigger to a Custom Event matching e.g. intake_purchase.
  4. Map the dataLayer variables (e.g. program, priceCents) to GA4 event params.

Set up Meta Pixel

  1. In GTM, add a new tag using the Meta Pixel template (or custom HTML).
  2. Set the trigger to intake_purchase for a Purchase event.
  3. Optionally add intake_form_started for a Lead event.

Set up TikTok Pixel

  1. In GTM, add the TikTok Pixel tag template (from the GTM Community Template Gallery).
  2. Set the trigger to intake_purchase for a CompletePayment event.
  3. Optionally add intake_form_started for a SubmitForm event.