The Cliengo API

Welcome to the Cliengo developer hub. You'll find comprehensive guides and documentation to help you start working with Cliengo as quickly as possible, as well as support if you get stuck. Let's jump right in!

Guides

Sending custom params

How to send custom parameters for each lead.

If you need to add additional params for each lead generated in your website, you can add them programmatically with the following code snippet.

1. Enhance you website script.

Right before including the script generated in Cliengo to your website, paste the following code snippet to include any additional parameter for each generated lead.

<script>
    window.leadakiSettings = { 
      	customParams : {
      		customParamKey1: '123456789', 
          customParamKey2: 'superValue'
    	}
    };
</script>

customParams works as a key-value Map.

  • Key: You can specify any name for the key, but it has to be a String.
  • Value: You can specify any valid json primitive value (string, date, number, boolean)

After all your customParams where specified your final webpage should look like:


<!-- Start Cliengo Custom Configuration -->
<script>
    window.leadakiSettings = { 
      	customParams : {
      		customParamKey1: '123456789', 
          customParamKey2: 'superValue'
    	}
    };
</script>
<!-- End Cliengo Custom Configuration -->

<!-- Start Cliengo Installation Code -->
<script type="text/javascript">
(function(){
  var ldk=document.createElement('script'); 
  ldk.type='text/javascript'; 
  ldk.async=true;
 ldk.src='https://s.cliengo.com/weboptimizer/{companyId}/{websiteId}.js';
  var s=document.getElementsByTagName('script')[0];
  s.parentNode.insertBefore(ldk, s);})();
</script>
<!-- End Cliengo Installation Code -->