How To Add A Live Chat Widget Before The </body> Tag?

Hello How Can I Correctly Integrate the Live Chat Widget before the tag...

How can I integrate it as how to make an addon?

the Script is:

Thank you so much !


You can insert directly in file index.tpl

But during update you can lost this changes.

Better to do this by connecting to the index:body hook.

Best regards


It is not recommended to edit index.tpl file. There is a special index:head_scripts hook for such scripts

Just do not forget to add data-no-defer parameter