User Information

For Single-Page Applications (React, Angular, Vue, Svelte, etc).

import LuciaSDK from 'lucia-sdk';

LuciaSDK.userInfo(
  user, 
  userInfo
);

Example

import LuciaSDK from 'lucia-sdk';

LuciaSDK.userInfo(
  "johndoe@email.com", 
  { 
    first_name : "John", 
    last_name: "Doe", 
    contact: "1234456722" 
  }
);

For Mutli-Page Application

<script src="https://cdn.luciaprotocol.com/lucia-sdk-latest.min.js"></script>
<script>
  LuciaSDK.init({

    // API Key from https://ads.clickinsights.xyz
    api_key: 'bb10bb08-a7298818-3265d018-e9a648ae-95371b44-d25e6c77-38069b79-1e4bd263', 
  
  });

  LuciaSDK.userInfo(
  user, 
  userInfo
);

</script>

Example

<script src="https://cdn.luciaprotocol.com/lucia-sdk-latest.min.js"></script>
<script>
  LuciaSDK.init({

    // API Key from https://ads.clickinsights.xyz
    api_key: 'bb10bb08-a7298818-3265d018-e9a648ae-95371b44-d25e6c77-38069b79-1e4bd263', 
  
  });

  LuciaSDK.userInfo(
  "johndoe@email.com", 
  { 
    first_name : "John", 
    last_name: "Doe", 
    contact: "1234456722" 
  }
);

</script>