I'd personally insert an external JS file for the header or footer of the web site where the module is installed (and only when It can be installed). PrestaShop’s ObjectModel can cope with each multiple languages and multiple shop entities. The entity Category is a superb example of the circumstance: https://leftbookmarks.com/story16232107/the-best-side-of-seo-automatico