SDK’s integration

The Axeptio ClientAPI is a RESTful JSON / HTTP API that allows you to automate the configuration and administration of Axeptio.The SDK is a small Javascript file that is loaded by your html page using

Axeptio Embed.JS SDK

This 40KB file (12KB zipped) is hosted by Axeptio and served from a high-performance CDN (which is a content distribution network).

Integration

To integrate Axeptio on your website, you need to add these few lines of code at the bottom of each of your pages. This will allow you to load Axeptio script which will then take care of controlling the injection of widgets, the appearance of cookies…

The SDK can be loaded into the <head> tag or added before closing the <body> tag. For better performances, we recommend the second method, which allows the script to start parsing the page elements as soon as possible.

You can find this piece of code and copy/paste it here:

My projects > Name of Project > Technical Integration

<script type="text/javascript">
  var el = document.createElement('script');
      el.setAttribute('src', 'https://static.axept.io/sdk.js');
      el.setAttribute('type', 'text/javascript');
      el.setAttribute('async', true);
      el.setAttribute('data-id', '5c6c5afae6b2877317a4518e');
      el.setAttribute('data-cookies-version', 'Misterflyversion1FR');
  if (document.body !== null) {
    document.body.appendChild(el);
  }
</script>

Detailed integration

Depending on your Content Management System, we invite you to click on one of the following links:

Last updated