Implement Segment TrustArc wrapper and consent-based third-party script loading#197
Implement Segment TrustArc wrapper and consent-based third-party script loading#197
Conversation
|
UI bundle preview build failure! ❌
|
This comment has been minimized.
This comment has been minimized.
|
UI bundle preview build successful! ✅ |
This comment has been minimized.
This comment has been minimized.
|
UI bundle preview build successful! ✅ |
This comment has been minimized.
This comment has been minimized.
|
UI bundle preview build successful! ✅ |
|
Build successful! ✅ |
Summary
Followup to #196 which switched from Ketch to IBM TrustArc. This PR implements the Segment TrustArc wrapper for consent-aware analytics tracking and adds consent checking to third-party scripts (Intercom).
Based on implementation from langflow-ai/website PR #71.
Changes
Segment Integration with TrustArc Wrapper
trustarc-segment-wrapper-v1.1.js)TrustArcWrapper.withTrustArc()to respect consentdata-event,data-cta, etc.) following IBM standardsConsent-Based Script Loading
cm_data_subject_consent_changed,cm_consent_preferences_set)Google Consent Mode v2
Script Loading Order Fix
head-scripts.hbs<head>Footer Update
window.truste.eu.clickListener()site.keys.ketchSmartTagUrltosite.keys.ibmAnalyticsEnabledFiles Modified
Configuration Required
Update Antora playbook:
Update
head-scripts.hbsIBM Segment Common Properties:How Consent Flow Works
<head>(Google Consent Mode default: denied)cm_consent_preferences_seteventEvent Tracking Examples
CTA Clicked Event
Sends to Segment:
UI Interaction Event
Sends to Segment:
TrustArc Consent Categories
References