Installation

To install the widget on your web page, just copy and paste the widget provided on the installation page where you would like the widget to appear.

The code will look something like this:

<script type="text/javascript">
   window.Maitre = { uuid: "MFXXXXXX" };
</script>
<script data-maitre src='https://maitreapp.co/widget.js' async></script>

By default, Maître will be initialized on page load. If this is not possible on your website (eg: you have a single page application), you can initialize Maître manually by triggering a maitre-init event.

ⓘ The global variable window.Maitre must be initialized before the second script and must contain at least the property uuid. If window.Maitre is initialised after the widget.js script or it doesn't contain the property uuid, the widget will fail to load.

Still need help? Contact Us Contact Us