Custom code in page load appears randomly in production

I added a custom code for a live chat capability on a specific page.
It worked in production; then, I added another analytics code, and the custom live chat code disappeared.
I reverted to the previous working version, to no avail.
After a dozen publishing tries, I quit.

Is it reliable? Are there things we should know?

Hi @felix :wave:

It should be reliable, yes.

Custom code can appear if scripts are not added in the correct place or if tags are not closed properly for example (this is not a WeWeb thing by the way. it’ll happen in code and other no-code tools as well).

Can you share some screenshots of where you added the custom code in your project so we can help you debug?

Hi @Joyce, sure.

The script is not pushed in production when added on this static collection page

But it works perfectly when added to the whole project

BTW: the validation error messages are overkill.

Could you file a bug ticket on support.weweb.io? We’ll have a look! Thanks