Hi,
I’ve encountered an issue with the current Charla widget embed code when used through Google Tag Manager (GTM). The existing script relies on ES6 features such as arrow functions and const declarations, which are not fully supported in all GTM environments due to older JavaScript execution contexts. As a result, the script doesn’t execute as expected when deployed via GTM.
I was able to rewrite the code to make it GTM-compatible by switching to ES5 syntax and adjusting the script loading sequence. However, not all users will have the technical knowledge to do this themselves.
To improve usability, I recommend providing an alternative version of the widget code on the dashboard specifically for users who want to implement it through GTM — using ES5 syntax and a compatible loading method.
Note:
And please make sure it works on Iphone devices , I had to also change the code to make it work on Iphone browsers.
Thanks
NAG