Widget Setup
Web Integration (HTML / JavaScript)
🔑 Your Public Key
<your public key>Integration Code
<!-- Place it just before the closing </body> tag. -->
<script>
(() => {
// Create the script element
const s = document.createElement('script');
// Set the source URL and defer loading
s.src = 'https://js.cuoral.com/inline.js';
s.defer = true;
s.dataset.cuoralKey = "<your public key>";
// Pass User Details (for personalized support)
try {
const tm = JSON.parse(localStorage.getItem("user") || "{}");
if (tm.email) {
s.dataset.email = tm.email;
s.dataset.first_name = tm.first_name || "";
s.dataset.last_name = tm.last_name || "";
}
} catch (e) {
// Handle parsing error silently
}
document.head.appendChild(s);
})();
</script>Optional: Passing User Details
Flutter App Integration
Step 1: Add Dependency
Step 2: Initialize CuoralLauncher
React Native & Expo Integration
Step 1: Install Package
Step 2: Usage
Ionic & Capacitor Integration
Step 1: Install the Package
Step 2: Initialize Cuoral
Last updated