Skip to content

Mindtraining Platform - Integration

Quick Start (3 minutes)


Step 1

Include the script

Insert the following script before the closing body tag.

Environment

Step 2

Add the container

Add this container where the platform should render.

Step 3

Initialize the platform

Run init after the script is ready.

ES Modules alternative: if your build supports ES modules, you can use script.es.js instead and import it directly.

That's it.

Important

Before this integration can work, you must send us the exact full domain where the script will run, including the pathname.

Example: https://mysite.com/games

We need the exact URLs for both staging and production so we can configure them in our backoffice as approved whitelist entries. If the domain or pathname changes in either environment, the new URL must also be approved.

More configuration and integration details

Client integration documentation maintained in-repo.