Static
getGets the Microsoft Clarity instance from the global window object.
The Clarity instance if available, undefined otherwise
Static
identifyIdentifies a user session in Microsoft Clarity.
Configuration object for user identification
Promise that resolves when identification is complete
Static
setSets the application version tag in Microsoft Clarity.
The application version in semantic version format (e.g., "v1.2.3")
Static
tagSets a custom tag in Microsoft Clarity.
The tag key
The tag value
Promise that resolves when the tag is set
Microsoft Clarity integration helpers.
This class provides static methods to interact with Microsoft Clarity analytics, including user identification, custom event tagging, and version tracking.
Example