clarity-decode
Version:
An analytics library that uses web page interactions to generate aggregated insights
10 lines (8 loc) • 339 B
text/typescript
import * as decode from "@src/clarity";
// Expose clarity variable globally to allow access to public interface in a browser
if (typeof window !== "undefined") {
if ((window as any).clarity === undefined || (window as any).clarity === null) {
(window as any).clarity = {};
}
(window as any).clarity.decode = decode;
}