Skip to content

Instantly share code, notes, and snippets.

@liorkesos
Last active August 13, 2021 11:03
Show Gist options
  • Save liorkesos/7d7fa75275892a925441116fd39fde68 to your computer and use it in GitHub Desktop.
Save liorkesos/7d7fa75275892a925441116fd39fde68 to your computer and use it in GitHub Desktop.
<html>
<head>
<script> (function(d,t) { var BASE_URL="https://app.chatwoot.com"; var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.src=BASE_URL+"/packs/js/sdk.js"; s.parentNode.insertBefore(g,s); g.onload=function(){ window.chatwootSDK.run({ websiteToken: 'Fdm5ypwCWKm8fAEpf9w2Rqsm', baseUrl: BASE_URL }); } })(document,"script"); window.chatwootSettings = { type: 'expanded_bubble', launcherTitle: 'support by hossted' } window.addEventListener('chatwoot:ready', function () { // Use window.chatwoot here // ... window.chatwoot.setCustomAttributes({ serverOffering: "sonarqube", version: "3.16", existingUserId: "liorkesos" // You can pass any key value pair here. // Value should either be a string or a number. // You need to flatten nested JSON structure while using this function }); }); </script>
</head>
<body>
</body>
<h1>lala</lala>
</html>
<html>
<body>
<h1>lala</lala>
<script> (function(d,t) { var BASE_URL="https://app.chatwoot.com"; var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.src=BASE_URL+"/packs/js/sdk.js"; s.parentNode.insertBefore(g,s); g.onload=function(){ window.chatwootSDK.run({ websiteToken: 'Fdm5ypwCWKm8fAEpf9w2Rqsm', baseUrl: BASE_URL }); } })(document,"script"); window.chatwootSettings = { type: 'expanded_bubble', launcherTitle: 'support by hossted' } window.addEventListener('chatwoot:ready', function () { // Use window.chatwoot here // ... window.chatwoot.setCustomAttributes({ serverOffering: "sonarqube", version: "3.16", existingUserId: "liorkesos" // You can pass any key value pair here. // Value should either be a string or a number. // You need to flatten nested JSON structure while using this function }); }); </script>
</body>
</html>
websiteToken: 'Fdm5ypwCWKm8fAEpf9w2Rqsm',
baseUrl: BASE_URL
});
}
})(document,"script");
window.chatwootSettings = {
type: 'expanded_bubble',
launcherTitle: 'support by hossted'
}
window.addEventListener('chatwoot:ready', function () {
// Use window.$chatwoot here
// ...
window.$chatwoot.setCustomAttributes({
serverOffering: "sonarqube",
version: "3.16",
existingUserId: "liorkesos"
// You can pass any key value pair here.
// Value should either be a string or a number.
// You need to flatten nested JSON structure while using this function
});
});
</script>
</header>
<body>
<h1> hello stranger</h1>
<p>Something somethin
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment