Quick Start
Get started with the SDK from code snippets; Less than 5 minutes
Event Tracking with w3aSDK
This guide will help you swiftly set up event tracking with w3aSDK. For a comprehensive understanding, we recommend exploring the complete documentation.
Installation
Install the w3aSDK package via NPM:
Initialization
Initialize the SDK in your main application file (e.g., index.js
):
For now, you can leave the configuration options empty. Read more about configuration options.
Tracking Page Views
You have the flexibility to choose between automated and manual page view tracking. Both methods are compatible with react-router-dom
.
Automated Tracking
Enable automated page view tracking with enableAutoPageView()
:
Manual Tracking
To manually track page views, use the pageView()
API:
Tracking Wallet Connections
Monitor wallet connections to your website using the w3aSDK.walletConnect
API:
Here's an integration example with WalletConnect:
Final Steps
You're now set up and ready to track! If you wish to monitor other events, check out the further documentation. To ensure everything functions correctly before moving to production, verify here.
Last updated