Skip to main content

ReactJS

1: Copy the code

To finalize the creation of your source and install told, you need to add a small piece of code and into the head tag of your index.html.

Told code snippet example:

<script>
(function (w, d, e, v, o, l, t){w['ToldWidget']=o; w[o]=w[o] || function (){(w[o].q=w[o].q || []).push(arguments);}; w[o].l=1 * new Date();l=document.createElement(e);t=document.getElementsByTagName(e)[0]; l.async=1; l.src=v; t.parentNode.insertBefore(l, t);})(window, document, 'script', 'https://scripts.told.club/sdk/sdk.js', 'told');
told('init', {{ SOURCE_ID }});
</script>

For more explanations about the script

2: Verify installation

Once you've deployed your app-web with the javascript snippet, you can check that told has been installed. Click on the "Verifiy installation" button.

This will open a link to your website and check if the code was implemented.

If everything went well the status should pass to installed.


TIPS

Open your web inspector, check if in your head html element you have see script above.


Tutorial