Websites
From the dashboard, you can navigate to different types of assets. Here we outline the features offered for websites.
Wallet Tracker SDK
Context
The absolute labs Wallet Tracker SDK allows companies to track visits on their website from a Web3 angle and allows several high-value use cases including:
gauge Web3 footprint among visitors by detecting presence of browser wallets
track wallet addresses visiting the page, augment your CRM with visits and browser attributes
attribute traffic, segments, actions and more
optimize ad spend by focusing on web3 savvy audiences
segment and engage with profiles leveraging on- and off-chain data including web activity on dapps
The SDK is designed to be as lightweight as possible: 4.5kb library, no dependency, loaded asynchronously.
Setup
The SDK setup is as simple as adding the following two lines in your website's head tag:
where YOUR PROJECT ID
is to be replaced by the key obtained from the absolute labs platform upon adding your website to your dashboard. Please get in touch with your Customer Success Manager for more details.
User tracking
The SDK allows you to pass it a user ID in order to reconcile visitor context, including wallet presence, and user profile.
To pass a user ID, use the following function on the SDK:
React to visitors having a wallet
The SDK offers a method to query whether a wallet is present on the user's browser, and which wallet it is.
This requires a slightly different SDK initialization, to handle asynchronous loading of the scripts on your page. Use the following snippet (in which the difference is the window.ALSDK
line).
This opens use cases for displaying web3-related content only to visitors you know are savvy, for instance in order to display a banner directing them to a landing page for claiming a branded NFT badge, after providing an email and wallet address.
The SDK exposes an async function to detect if a wallet is present:
From there, you can use this to for instance display a DOM element conditionally using the following code:
Personalize your page based on Segments
You can use the Absolute Labs Web SDK to check if a visitor's connected wallet address is in a segment you have created in Absolute Labs. To do so, you can call a dedicated method on the SDK:
This allows to personalize the browsing experience based on holdings, portfolio value, and an other segment you can create in the platform.
Last updated