Microsoft Clarity & UET Integration

Consent-Controlled Tracking for Clarity and Microsoft Advertising

Intastellar Consents ensures that Microsoft Clarity and Microsoft UET tags only execute after valid user consent has been granted.

  • No session recording before consent.
  • No advertising identifiers before approval.
  • No premature event forwarding.

Both analytics and advertising tags are blocked by default and activated dynamically based on user consent.

Consent signals are updated prior to tag initialization to prevent event dispatch in non-consented states.

Why Clarity and UET Require Consent Handling

Depending on configuration:

Microsoft Clarity may:

  • Record user sessions
  • Capture interaction events
  • Store identifiers
  • Send behavioral data to Microsoft endpoints

This typically falls under:

  • Statistics
  • Behavioral analytics

Microsoft UET may:

  • Set advertising cookies
  • Track conversions
  • Enable remarketing
  • Build audience segments

This typically falls under:

  • Advertising
  • Conversion tracking
  • Remarketing
  • Audience building

If these scripts load before consent, personal data processing may already occur.

What Happens Before Consent

Until the required consent categories are granted:

  • Clarity does not initialize
  • No session recording occurs
  • No analytics identifiers are set
  • UET does not execute
  • No advertising cookies are created
  • No conversion events are transmitted

All related network requests are blocked..

How the Integration Works

Intastellar Consents enforces Microsoft tag control through:

  • Default blocking of the Clarity and UET scripts
  • Category-based activation logic
  • Fetch, XHR, and beacon interception
  • Official Microsoft Consent Mode signal updates

Execution Flow

  1. Clarity and UET scripts are blocked by default
  2. Default consent state is set to denied
  3. User selects cookie preferences
  4. If “Statistics” consent is granted →
    • Clarity initializes
    • Consent state is communicated via the official API
  5. If “Marketing” consent is granted →
    • UET initializes
    • Advertising consent signals are updated via the official API
  6. If consent is declined →
    • APIs remain in denied state
    • Scripts stay blocked
  7. If preferences change →
    • Consent state is communicated via the official API
    • Consent signals update dynamically

Consent Withdrawal Handling

If a user withdraws consent:

  • Further tracking requests are blocked
  • Tag execution halts
  • No additional identifiers are created

Tracking stops from the moment consent is revoked.

Compatible with Modern Tag Architectures

The integration supports:

  • Direct script implementations
  • Google Tag Manager deployments
  • Server-side tagging setups
  • Complex multi-tag environments

Consent remains the runtime control layer governing all Microsoft tracking behavior.

Microsoft Consent Mode Compatibility

If used alongside Microsoft Consent Mode, Clarity and UET execution remains aligned with your broader consent strategy.

Consent categories remain consistent across Microsoft platforms, reducing the risk of mismatched tracking behavior.