<script id="supahub" type="text/javascript">
!(function (s, u, p, a) {
function supahub() {
var g = u.createElement(p),
h = u.getElementsByTagName(p)[0];
(g.id = a),
(g.src = "https://widget.supahub.com/sdk.js"),
h.parentNode.insertBefore(g, h);
g.onload = function () {
window.SupahubWidget("identify", {
// Workspace
workspaceName: "workspace-name", // Required: Copy your workspace name from 'workspace-name.supahub.com'
// User Data
id: "786", // Required: Unique id that you are using to identify your user
name: "Username", // Required
email: "[email protected]", // Required
avatar: "https://example.com/images/user-profile.jpg", // Optional
customFields: {
title: "Product Manager",
location: "Paris",
}, // Optional: Add any type of field, in the format ({key1: "value1", key2: "value2"})
});
};
}
"function" != typeof s.SupahubWidget &&
(s.SupahubWidget = function () {
(s.SupahubWidget.q = s.SupahubWidget.q || []).push(arguments);
}),
"complete" === u.readyState || "interactive" === u.readyState
? supahub()
: s.addEventListener("DOMContentLoaded", supahub);
})(window, document, "script", "supahub-sdk");
</script>