Skip to content

For developers

A small snippet with clear boundaries.

Install the site snippet on an approved domain. Keep consent in your control. Send a supported event only after the customer action succeeds.

01Integration flow

Your site stays in the driver’s seat.

The collector reports approved site activity. Your application decides when optional attribution storage is allowed and when a conversion has truly completed.

  1. 01

    Install

    Add the site-specific snippet, or import TagSignal's Google Tag Manager template from the site's install guide, and approve the domain in TagSignal.

  2. 02

    Collect

    Page views, the referring site and recognised UTM fields are sent without cookies or cross-site identity. After consent, each lead also carries its source: the ad network, search engine or site the visitor came from, never a click ID, keyword or full address.

  3. 03

    Opt in

    After your consent manager grants permission, turn on lead source and same-tab attribution. Before that, leads are sent with no source.

  4. 04

    Confirm

    Send a supported conversion only after the lead, signup or purchase succeeds.

02Example integration

Call the event at the right moment.

Connect the consent opt-in to your existing consent manager. Call the conversion method only in the successful completion path, never on a button click alone.

  • Uses an approved event name
  • Sends no custom person payload
  • Sends a lead source only after consent
  • With data-hubspot-forms="auto" on the tag, HubSpot forms are recorded from HubSpot's own success event, without reading any field; don't also call convert for them, even on a thank-you page
Site integrationJavaScript
// Follow your consent manager’s decision
if (consentAllowsAnalytics) {
  window.TagSignal.enableSessionAttribution();
}

// Only after your server confirms success
if (leadSaved) {
  window.TagSignal.convert('lead_completed');
}

Available events: lead_completed, signup_completed, purchase_completed

Check your setup

Make your integration easy to inspect.

Test a site and review the values and events the collector actually sends.