Hi All,
I’m trying to set tido’s chat language using JS.
This is my current code:
if (language === 'mt'){
let tidioChatLang = "mt";
}
This is not working when switching the website’s language to MT.
Now their API says that I need to implement the following JavaScript Code:
document.tidioChatLang = "mt";
This is a normal JS. The problem is that the ‘document’ doesn’t work in Wix Corvid. I tried replacing it with ‘let’ but in reality in declaring a variable.
Also, keep in mind that Tidio is implemented on the site through JS and not the Wix Plugin. I have implemented the code in the header.
Can someone please help?
You need to contact their own support team for help with their own app as you probably won’t be able to use Wix Corvid with this third party app.
https://www.tidio.com/knowledge/getting-started/wix-installation-guide/
@givemeawhisky This is a normal JS. The problem is that the ‘document’ doesn’t work in Wix Corvid. I tried replacing it with ‘let’ but in reality in declaring a variable.
In their API it says that I should implement the following JS:
document.tidioChatLang = "mt";
Is it possible to use something else instead of ‘document’?
Also, keep in mind that Tidio is implemented on the site through JS and not the Wix Plugin. I have implemented the code in the header.
FYI updated the topic so everyone can see the information clearly
You don’t have access to the document. You need to create a backend module, import their npm package, or embed it in an iframe.