Overview
This guide will get you tracking user behavior and wallet connections in about 5 minutes. By the end, you’ll have:- ✅ Automatic page, click, scroll, and form signals (when
auto-events="true") - ✅ Session tracking via the SDK session model
- ✅ Wallet linking with
Cryptique.walletAddress()(and optional custom events) - ✅ Data flowing to your dashboard
Prerequisites
- A Cryptique account (sign up here)
- Access to your website’s HTML or build system
- Your Site ID from the Cryptique dashboard
Step 1: Get Your Site ID
- Log in to app.cryptique.io
- Navigate to Settings → Sites
- Click Add Site or select an existing site
- Copy your Site ID (format:
your-domain-xx)
Step 2: Add the Tracking Script
Choose your installation method:- CDN (Recommended)
- npm
- Google Tag Manager
Add this script to your HTML, just before the closing Replace
</head> tag:YOUR_SITE_ID with your actual Site ID.Step 3: Verify Installation
- Visit your website
- Open your browser’s developer console (F12)
- Look for:
[Cryptique] Initialized successfully - Go to your Cryptique dashboard → Live Events
- You should see events appearing in real-time
Events may take up to 60 seconds to appear in the dashboard. If you don’t see events after 2 minutes, check the troubleshooting guide.
Step 4: Track Custom Events
Beyond auto-events, track specific actions that matter to your product:Step 5: Track Wallet Connections
When a user connects their wallet:Step 6: Identify Users
When a user logs in or you know their identity:What’s Being Tracked?
Withauto-events enabled, the SDK sends many named auto events. Common ones:
| Event | Description |
|---|---|
page_view | Page load / route with timing context |
element_click | Clicks with element and coordinate metadata |
rage_click / dead_click | Frustration and non-interactive click patterns |
page_scroll | Increasing scroll depth |
form_submit | Form submits (metadata only, no field values) |
text_selection / copy_action | Selection and copy signals |
page_summary | Aggregated engagement when the user leaves or hides the tab |
Cryptique.walletAddress() and Cryptique.track() if you want them in the event stream.
Example: Complete Setup
Here’s a complete example for a DeFi app:Troubleshooting
Events not appearing in dashboard
Events not appearing in dashboard
- Check browser console for errors
- Verify your Site ID is correct
- Ensure the script loads before user interactions
- Check that your domain is allowed in site settings
- Disable ad blockers temporarily
Script not loading
Script not loading
- Check for Content Security Policy (CSP) blocks
- Verify the CDN URL is correct
- Try the npm package instead
Wallet events not tracking
Wallet events not tracking
- Call
Cryptique.walletAddress(address)after the wallet connects - Pass a valid address (0x…)
- If you rely on a custom event (e.g.
wallet_connected), callCryptique.track()yourself — it is not emitted automatically
Next Steps
Add Smart Contracts
Track on-chain transactions
Enable Wallet Enrichment
Get rich user profiles
Build Your First Report
Create insights from your data
SDK Reference
Full SDK documentation