Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

zyghq/web-zdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zyg

Zyg is purpose-built customer support for your SaaS products.
Website · X · Issues

⚠️ Deprecated

This project is deprecated and no longer maintained. Please use zyg-js for the updated version or alternative.

Usage

Enable Chat Widget

<script>
  ZygSDK("init", {
    widgetId: "wg_cqdq05ctidu9511bvag0",
  });
</script>

Enable Chat Widget with Customer Identity Verification

<script>
  ZygSDK("init", {
    widgetId: "wg_cqdq05ctidu9511bvag0",
    customerEmail: "jonny@depp.com",
    customerHash: "lkahsodhflaskjdhfkahsdf-asndfkbn"
    traits: {
      name: "Jonny Depp",
    },
  });
</script>

Example Usage in a React Component

view example

import { useEffect } from "react";

declare global {
  interface Window {
    ZygSDK: any;
  }
}

function App() {
  useEffect(() => {
    window.ZygSDK("init", {
      widgetId: "wg_cqdq05ctidu9511bvag0",
      traits: {
        name: "Jonny Depp",
      },
    });
  }, []);

....

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published