C15T Logo

Microsoft UET

Learn how to use Microsoft UET with c15t.

tocOn this page

Canary Feature

This feature is available in canary releases and may have breaking changes. Use with caution in production. Report issues on GitHub

Microsoft UET is a popular tracking pixel for marketing purposes. By default c15t will load the script based on marketing consent. This tag also load Microsoft Clarity (if enabled), we recommend loading this separately, as it's an analytics script.

Implementation

Adding the script to c15t

import { configureConsentManager } from 'c15t';
import { microsoftUet } from '@c15t/scripts/microsoft-uet';

configureConsentManager({
  // ... 
  scripts: [
    microsoftUet({
      id: '123456789012345',
    }),
  ],
});

Types

MicrosoftUetOptions

Property
Types

Script

Property
Types