Skip to content

Installation

Installing the SDK

Add the following script to your HTML page or template. Make sure to replace the YOUR_TOKEN placeholder with the token we provided to you. If you don’t have a token, contact us.

<script async defer
src="https://cdn.locallogic.co/sdk/?token={YOUR_TOKEN}&callback=initLocallogic">
</script>

⚠️ Make sure you have correctly replaced your SDK token in the example above, including removing the curly brackets.

Accessing the API

Add the following script to your whole website or at least on every page where our data is shown. This installation version, with usage=api, has minimal impact on your page performance. Make sure to replace the YOUR_TOKEN placeholder with the token we provided to you. If you don’t have a token, contact us.

<script async defer
src="https://cdn.locallogic.co/sdk/?token={YOUR_TOKEN}&usage=api">
</script>
  • ⚠️ Make sure you have correctly replaced your SDK token in the example above, including removing the curly brackets.
  • ⚠️ Make sure to have the usage=api parameter in the script URL
  • ⚠️ Make sure to not have a callback parameter in the script URL
© Local Logic 2024