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
By userWalletAddress
we mean an Ethereum wallet address starting with "0x...".
Events tracking
Superdao supports the following event types by default:
PAGE_VIEW
is used upon page viewWALLET_CONNECT
is used upon Metamask/WalletConnect loginFORM_SUBMIT
is 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
|
|
|
|
|
|
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
Once all the steps are done, head over to your account to check the traffic in the Reporting tab.
Last updated