Overview
This guide covers implementation patterns for common Web3 analytics scenarios. Use these patterns to ensure comprehensive, accurate tracking.Implementation Workflow
Common Patterns
Authentication Flow
Track the complete auth journey:Wallet Connection Flow
Track wallet interactions:DeFi Swap Flow
Track the complete swap journey:NFT Mint Flow
Onboarding Flow
Track multi-step onboarding:Error Tracking
Track errors for debugging:Framework-Specific Patterns
React with Wagmi
Next.js App Router
Vue 3 Composition API
Groups (companies, teams, workspaces)
Model B2B or multi-tenant context with Groups: assign the user, then set properties on the group profile.add_group / remove_group when a user can belong to multiple IDs under the same key. After identify(), the server may return group_memberships to hydrate assignments on a new device.
Testing Your Implementation
Debug Mode
Enable debug logging:Verification Checklist
Common Issues
Events not appearing
Events not appearing
- Check Site ID is correct
- Verify domain is allowed in settings
- Check for ad blocker interference
- Look for console errors
User not identified
User not identified
- Ensure identify() is called after SDK loads
- Verify distinct_id is a string
- Check that properties are valid JSON
Wallet not linking
Wallet not linking
- Call
Cryptique.walletAddress()with a valid address - Verify address format (0x…)
- Confirm the SDK session initialized (Site ID, domain allowlist)
Duplicate events
Duplicate events
- Check SDK isn’t initialized twice
- Verify event handlers aren’t double-bound
- Review SPA routing configuration
Next Steps
SDK Reference
Full method documentation
Build Reports
Analyze your data