This project is deprecated and no longer maintained. Please use zyg-js for the updated version or alternative.
<script>
ZygSDK("init", {
widgetId: "wg_cqdq05ctidu9511bvag0",
});
</script>
<script>
ZygSDK("init", {
widgetId: "wg_cqdq05ctidu9511bvag0",
customerEmail: "jonny@depp.com",
customerHash: "lkahsodhflaskjdhfkahsdf-asndfkbn"
traits: {
name: "Jonny Depp",
},
});
</script>
import { useEffect } from "react";
declare global {
interface Window {
ZygSDK: any;
}
}
function App() {
useEffect(() => {
window.ZygSDK("init", {
widgetId: "wg_cqdq05ctidu9511bvag0",
traits: {
name: "Jonny Depp",
},
});
}, []);
....