Attribution and conversion tracking

Every submission records where the visitor came from, so a practice can tell which campaign produced which enquiry. Nothing needs to be configured: the embed loader collects the data on the host page and passes it to the form.

What is captured

DataDescription
Campaign parametersQuery parameters on the page URL, including the tracking parameters listed below.
First touchThe landing page, referrer, parameters and time of the visitor's first visit to the site, remembered for 90 days.
PageURL and title of the page the form was submitted from.
ReferrerThe page that linked the visitor to the current page.
Device contextBrowser time zone, language and screen size.

Attribution is stored encrypted alongside the answers, shown next to each submission in the panel, included in CSV exports and sent in webhooks.

Recognized tracking parameters

These are always highlighted as tracking data when present:

  • UTM: utm_source, utm_medium, utm_campaign, utm_term, utm_content, utm_id, utm_source_platform, utm_creative_format, utm_marketing_tactic
  • Google Ads and Display: gclid, gbraid, wbraid, gad_source, dclid
  • Meta: fbclid, igshid
  • Microsoft Ads: msclkid
  • TikTok: ttclid
  • X: twclid
  • LinkedIn: li_fat_id
  • Snapchat: sccid
  • Pinterest: epik
  • Generic: ref, source, campaign

Parameter names are case-insensitive. Up to 40 query parameters are kept per submission, each limited to 500 characters.

How it survives navigation

Visitors rarely fill in a form on the page they landed on. The loader therefore keeps two records in the host site's own browser storage:

  • Last touch. Campaign parameters are kept for the browser session, so they are still attached when the visitor reaches the form several pages later.
  • First touch. The first landing page, referrer and parameters are kept for 90 days.

No cookies are set by the loader, and no attribution data is sent to hipaaform.ai until the visitor submits the form.

Hidden fields

A form can contain hidden fields that are filled from a URL parameter. Give the hidden field the parameter name (for example provider) and a link such as https://www.yourpractice.com/book?provider=dr-lee stores dr-lee as an answer. A hidden field can also carry a fixed default value.

Conversion events

On a successful submission the host page receives a signal that contains the form ID and nothing else — never the answers.

document.addEventListener('hipaaform:submit', (event) => {
  // event.detail = { formId: 'FORM_ID' }
});

With Google Tag Manager on the page, this is pushed to the dataLayer:

{ event: 'hipaaform_submit', hipaaform_id: 'FORM_ID' }

Use a Custom Event trigger named hipaaform_submit to fire Google Ads, GA4 or Meta conversion tags. Because the event carries no answers, no protected health information reaches those tools through hipaaform.ai.

View this page as Markdown · All docs in one file