developer-en
  • Apprendre à utiliser Axeptio
  • SDK
    • SDK’s integration
    • Project publication
  • Cookie configuration
    • Free version
    • Pro version
    • La formule Agence
  • STEPS
    • Welcome screen
    • Les étapes
      • Choose your cookies
      • Choose your pictures
      • Texts steps
      • Le soft opt-in
  • CUSTOMIZATION
    • Personnalisez Axeptio
      • Graphic charter and front
      • The texts of the buttons
      • Widget position
      • Choice of font style and size
      • Choice of typography
    • Choisissez vos images
    • L'apparence du bouton widget
  • WEBSITE INTEGRATION
    • Typeform
    • Intégration CMS
      • Squarespace Integration
      • Joomla Integration
      • Shopify Integration
      • Drupal Integration
      • WordPress Integration
      • Intégration WIX
  • TECHNICAL INTEGRATION
    • Google Tag Manager
      • Configuration of your GTM account
      • Control your Axeptio tags with Google Tag Manager
      • Contrôle Avancé sous Google Tag Manager
    • Control your cookies in custom mode
      • Cookie Sellsy
      • Cookie Google Analytics et facebook en mode custom
  • Marketing Consent
    • Le module Consentements Marketing
      • Créer une checkbox Marketing
      • Configuration de votre registre de consentement
    • Intégration Avancé
      • Synchro Wordpres Formulaire Elementor
      • Relier Axeptio à une checkbox existante
      • Consentement Indispensable
      • Relier son consentement au mail présent dans le formulaire
  • ADVANCED SETTINGS
    • IAB
    • Consent Register
    • Multisites
    • Multilingual
    • A/B Testing
    • Activation Code
    • Base de données dédiée
  • RestFull API
    • Client API Documentation
    • API Documentation
      • Project resource example
      • Consent Box Resource Example
Powered by GitBook
On this page
  • Axeptio Embed.JS SDK
  • Integration
  • Detailed integration

Was this helpful?

  1. SDK

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:

PreviousApprendre à utiliser AxeptioNextProject publication

Last updated 5 years ago

Was this helpful?