Installation and initialization for a browser environment using a Javascript SDK

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

Install our sdk using

npm


npm install lucia-sdk 

OR

yarn


yarn add lucia-sdk

page.js


import LuciaSDK from 'lucia-sdk';

LuciaSDK.init({

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

});

For Multi-Page Application


include the script


<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', 
  
  });

</script>

Track Specific Events