Tracker setup
Superdao tracks conversions with a simple JS snippet, which can be installed as an SDK package.
SDK installation
Put these two JS snippets on every page. Replace TRACKER_ID with the key that you received from the Superdao team.
Page views tracking
You can track page visits by calling the sdt.page method manually on each page load (or each history API event change if your app is SPA)
Also, you can pass optional parameters, such as userWalletAddress, to enrich the event data
Events tracking
Superdao supports the following event types by default:
PAGE_VIEWis used upon page viewWALLET_CONNECTis used upon Metamask/WalletConnect loginFORM_SUBMITis used when a visitor submits a lead form
Along with the event types specified above we also track the following metadata:
UTM tags
User and wallet IDs
Timezone
Operating system
Page URL
Referrer
Most of the data is taken from the tab/HTML page context using the native browser API.
You can track these events by calling the sdt.track method with two arguments of the event name and event-specific payload
WALLET_CONNECT
{ userWalletAddress: string }
FORM_SUBMIT
{ userWalletAddress: string }
PAGE_VIEW
{ userWalletAddress: string }
The example below shows how to track form submissions with the FORM_SUBMIT event
The example below shows how to track Metamask logins in the React app with the WALLET_CONNECT event
Last updated