Hey everyone,
So I am referring to the Tidio chat service in which I need to add a script to my wix account which I’m fine with.
So they provide the following code, and they also provide me with a public key, they say I need to add my public key to the code so the script knows which chat to load up in the script (links are broken to due restrictions)
Can anyone see where I would put the public key?
The code script is:
<script async src="//code.tidio. co/fouwfr0cnygz4sj8kttyv0cz1rpaayva.js"></script><script>(function() {// modify whitelisted urls herevar whitelistedUrls = ['http://tidio.
com',];// do not modify script after this line var shouldShowWidget = (function isCurrentUrlWhitelisted() {var currentUrl = window.location.href;var isWhitelisted = false;
whitelistedUrls.forEach(url => {if (currentUrl.indexOf(url) > -1) {
isWhitelisted = true;}})return isWhitelisted;})();function onTidioChatApiReady() {if (shouldShowWidget) {
window.tidioChatApi.show();}else {
window.tidioChatApi.hide();}}if (window.tidioChatApi) {
window.tidioChatApi.on('ready', onTidioChatApiReady)}else {
document.addEventListener('tidioChat-ready', onTidioChatApiReady);}})();</script>