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.
- 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.
- 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.
- 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.
- 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
// 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
03Consent and privacy
Optional session context is explicit.
Before consent, the collector sends page views (the page, the referring site and the page’s UTM fields) without cookies, and a lead with its UTM fields but no source. A lead’s source, carrying campaign fields across pages and populating a customer-owned hidden form field all wait until your code calls enableSessionAttribution() after consent. Call it without asking only where the law that applies to the site’s visitors does not require consent for analytics; UK and EU sites need consent. Disabling it stops the source and clears the saved tab context, and restores fields the collector populated.
Personal-looking values are redacted before evidence storage. No person-level identity or revenue verification is claimed.
Check your setup
Make your integration easy to inspect.
Test a site and review the values and events the collector actually sends.