Hybrid Ecosystems
Unified insights across Web2 and Web3.
Lucia AI does more than collect user data. It continuously turns intent into action across your channels to increase distribution, qualified traffic, and growth outcomes.
Unify visitor + customer data across devices.
Auto-launch campaigns and track ROI live.
Map journeys to campaigns and conversions.
AI fixes weak campaigns and scales winners.
Maximize conversion, ROI, and lifetime value.
Built to support responsible growth with legal guardrails from day one.
Know where your users came from, what they're doing, and why.
<script
src="https://cdn.luciaprotocol.com/lucia-sdk-latest.min.js"
data-api-key="your-api-key-here">
</script>The SDK auto-initializes when loaded with the data-api-key attribute.
<script
src="https://cdn.luciaprotocol.com/lucia-sdk-latest.min.js"
data-api-key="your-api-key-here"
data-auto-track-clicks="true">
</script>The SDK provides methods to track wallet connections and user information. Here's how to implement wallet tracking in a login function:
interface WalletLoginParams {
connectedAccount: string;
walletName: "Metamask" | "Phantom";
}
async function handleWalletLogin({ connectedAccount, walletName }: WalletLoginParams) {
try {
// Track wallet connection
await LuciaSDK.sendWalletInfo(connectedAccount, 101, walletName);
// Handle wallet-specific logic
switch (walletName) {
case "Phantom": {
const solBalance = await connection.getBalance(new PublicKey(connectedAccount));
const tokenAccount = await fetchTokenAccounts();
// Track user information including balances
await LuciaSDK.userInfo(connectedAccount, {
solBalance,
tokenAccount,
});
break;
}
case "Metamask": {
// Add Metamask-specific tracking here
await LuciaSDK.userInfo(connectedAccount, {
// Add relevant Ethereum wallet data
});
break;
}
}
} catch (error) {
console.error('Error during wallet login tracking:', error);
}
}Unified insights across Web2 and Web3.
From startups to exchanges, we scale with you.
Round-the-clock assistance whenever you need it.
Move beyond fragmented data. Get clarity on what drives results and scale with confidence.