Powered by Smartsupp

Custom Integration

Implementation time : 30 min

In our Launify Administration:

  1. In our administration, click on the Integrations -> Create Key button.
  2. Fill in the key name and the domains that will be allowed to communicate with this key, and click Save.
  3. If you already have an API key, you will see a </> symbol on the right side of the row, click on it and copy the code that appears in the popup window.


Great! You now have an API key that works only on the domains you have defined, and you have copied our code.


In your e-shop

Now you need to insert our code with the API key into the <head> tag of your e-shop/application. Remember to replace YOUR_API_KEY_HERE with your API key if you copy this code from here.


  1. In your e-shop, add our measuring code, which you copied in the previous step from our Launify administration, to the header of the e-shop.
  2. You're done, your e-shop is now connected to our plugin.



Example of our code

<script>
window.onload = () => document.head.appendChild(Object.assign(document.createElement("script"), {
src: 'https://cdn.launify.com/launify.min.js?t=' + Date.now(),
onload: () => new Launify("YOUR_API_KEY_HERE").init(),
async: true,
}));
</script>


Now you need to set up your form fields (inputs, outputs) for entering addresses, emails, and for listening to the results.


Mapping

  1. In our administration, click on the Integrations button. Scroll down in this section to "Mapping Inputs and Outputs".
  2. By default, you already have a pre-defined first mapping group. You can edit this group according to your needs, or add more. There is no limit.
  3. You can add form inputs according to: id, name, class, data-attribute


It is standardly recommended to set up the suggestion to the input "street" (type: Address) and to the input "email" (type: Email).

For the results of the suggested data, you can choose which ones you want to use and to which output to send them.