Track Conversion

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

import LuciaSDK from 'lucia-t3';

LuciaSDK.trackConversion(
  event_tag, 
  amount, 
  event_details
);

Example

import LuciaSDK from 'lucia-t3';

LuciaSDK.trackConversion(
  "purchase", //event_tag
  500, //amount
  { 
    //event_details
    product_id: 'bag_123', 
    quantity: 1, 
    brand: 'Nike'
  }
);
 

For Mutli-Page Application

<script src=" https://d1b2pxnugd0qwt.cloudfront.net/lucia-t3.min.js"></script>
<script>
  LuciaSDK.init({

    baseURL: 'https://api.clickinsights.xyz',

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

</script>

Example

<script src=" https://d1b2pxnugd0qwt.cloudfront.net/lucia-t3.min.js"></script>
<script>
  LuciaSDK.init({

    baseURL: 'https://api.clickinsights.xyz',

    // API Key from https://ads.clickinsights.xyz
    api_key: 'bb10bb08-a7298818-3265d018-e9a648ae-95371b44-d25e6c77-38069b79-1e4bd263', 
  
  });
  
  LuciaSDK.trackConversion(
  "purchase", //event_tag
  500, //amount
  { 
    //event_details
    product_id: 'bag_123', 
    quantity: 1, 
    brand: 'Nike'
  }
);

</script>