react-microsoft-clarity
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -22,2 +22,17 @@ export module clarity { | ||
): void; | ||
/** | ||
* Cookie Consent | ||
*/ | ||
export function consent(): void; | ||
/** | ||
* Setup custom tags | ||
* @param key The tag name that identifies the kind of information you're sending | ||
* @param value The value attached to the tag | ||
*/ | ||
export function setTag( | ||
key: string, | ||
value: string | ||
): void; | ||
@@ -24,0 +39,0 @@ /** |
10
index.js
@@ -24,2 +24,10 @@ var clarityInit = require("./src/react-clarity"); | ||
function consent() { | ||
clarity("consent"); | ||
} | ||
function setTag(key, value) { | ||
clarity("set", key, value); | ||
} | ||
function upgrade(reason) { | ||
@@ -34,4 +42,6 @@ clarity("upgrade", reason); | ||
identify, | ||
consent, | ||
setTag, | ||
upgrade, | ||
}, | ||
}; |
{ | ||
"name": "react-microsoft-clarity", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "A simple small component to implement Microsoft Clarity into your React Application", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,2 +19,8 @@ # react-microsoft-clarity | ||
// Cookie consent | ||
clarity.consent(); | ||
// Setup a custom tag | ||
clarity.setTag('key', 'value'); | ||
// Upgrade session | ||
@@ -21,0 +27,0 @@ clarity.upgrade('upgradeReason'); |
5058
90
36