Skip to main content

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

  1. Log in to app.cryptique.io
  2. Navigate to Settings → Sites
  3. Click Add Site or select an existing site
  4. Copy your Site ID (format: your-domain-xx)

Step 2: Add the Tracking Script

Choose your installation method:

Step 3: Verify Installation

  1. Visit your website
  2. Open your browser’s developer console (F12)
  3. Look for: [Cryptique] Initialized successfully
  4. Go to your Cryptique dashboard → Live Events
  5. 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:
If you’re using standard wallet libraries, Cryptique can auto-detect wallet connections. Enable with:

Step 6: Identify Users

When a user logs in or you know their identity:
This links all their past anonymous activity to their identified profile.

What’s Being Tracked?

With auto-events enabled, the SDK sends many named auto events. Common ones: See the full list in Auto-Events. Wallet connect/disconnect are not built-in auto events — use 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

  1. Check browser console for errors
  2. Verify your Site ID is correct
  3. Ensure the script loads before user interactions
  4. Check that your domain is allowed in site settings
  5. Disable ad blockers temporarily
  1. Check for Content Security Policy (CSP) blocks
  2. Verify the CDN URL is correct
  3. Try the npm package instead
  1. Call Cryptique.walletAddress(address) after the wallet connects
  2. Pass a valid address (0x…)
  3. If you rely on a custom event (e.g. wallet_connected), call Cryptique.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