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.cliengoCustoms = { 
	customParams : {
      cliengo_property_id: '16772',
      kiteprop: true
}};
</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.cliengoCustoms = { 
  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 -->

This params will be collected and showed on the 'Clients' tab view in the CRM