Skip to main content

Overview

Cryptique’s data model is designed to solve the unique challenges of Web3 analytics by unifying three types of data into cohesive user profiles:

Core Concepts

Events

Events are discrete actions that users take. They form the foundation of behavioral analytics.
Event Types:
  • Auto-events: Captured when enabled (page_view, element_click, page_scroll, page_summary, etc.) — see Auto-Events
  • Custom events: Tracked via Cryptique.track()
  • Transaction events: Generated from indexed smart contracts
See Events & Properties for details.

User Profiles

User profiles aggregate all activity for a single user, identified by distinct_id.
Profile Sources:
  • identify(): Explicitly set user properties
  • people methods: Set, increment, append properties
  • Wallet enrichment: Automatically added from blockchain data
  • Computed: Derived from event history
See User Profiles for details.

Groups

Users can belong to groups (companies, workspaces, teams) under a string group key and one or more group IDs. Membership is updated with Cryptique.set_group / add_group / remove_group. Properties on the group itself (not the person) are updated via Cryptique.get_group(key, id).set(...). Group fields are merged into event custom_properties when events are sent. See Groups.

Transactions

On-chain transactions from your indexed smart contracts.
See Transactions for details.

Data Linking

The power of Cryptique is in automatically linking these data types:

distinct_id ↔ wallet_address

When a user connects their wallet:

wallet_address ↔ Transactions

Once a wallet is linked, all transactions from that wallet are attributed to the user:

Multiple Wallets

Users can connect multiple wallets:

Property Types

Cryptique supports these property data types: See Filters & Operators for full operator reference.

Sessions

Sessions group user activity with these rules:
  • Timeout: 30 minutes of inactivity starts a new session
  • Midnight: New session at midnight (user’s local time)
  • UTM change: New campaign parameters start a new session
Session properties are inherited by all events within the session:

Data Flow

  1. Collection: SDK sends events; indexer captures transactions
  2. Processing: CQ Intelligence links wallets to users
  3. Enrichment: Wallet data adds profile properties
  4. Storage: Unified profiles stored for analysis
  5. Query: Reports access complete user journeys

Next Steps

Events & Properties

Deep dive into event structure

User Profiles

Understand profile management

Transactions

On-chain data integration

Default Properties

Auto-captured properties