Skip to main content

Overview

Events are the foundation of analytics in Cryptique. Every user action—from page views to transactions—is captured as an event with associated properties.

Event Structure

Every event has this structure:

Event Types

Auto-Events

Captured automatically only when auto-events="true" (or Cryptique.enableAutoEvents()). Examples of implemented names: See Auto-Events for the full catalog, script attributes, and JavaScript API. Custom properties on each event may also include group membership fields merged from set_group / add_group.

Custom Events

Tracked via SDK:

Transaction Events

Generated from indexed smart contracts:

Properties

Properties provide context to events. They come in several categories:

Default Properties

Auto-captured on every event:

Custom Properties

Add your own properties to events:

Event-Specific Properties

Auto event payloads vary by event_name. Examples: element_click (abbreviated):
page_scroll:
Wallet lifecycle is not emitted as a built-in auto-event; track it explicitly with Cryptique.walletAddress() and Cryptique.track('wallet_connected', { ... }) if needed.

Property Data Types

Best Practices

Event Naming

Use snake_case with clear action verbs:

Property Naming

Property Values

High-Cardinality Properties

Avoid properties with unlimited unique values:

Limits

Next Steps

Track Events

Learn the track() method

Auto-Events

Automatic event names and configuration

Groups

Group keys, membership, and enrichment

Default Properties

Full property reference