countly_sdk_dart_core 26.1.0 copy "countly_sdk_dart_core: ^26.1.0" to clipboard
countly_sdk_dart_core: ^26.1.0 copied to clipboard

Countly Dart SDK for tracking user actions, events, views, and user profiles on all platforms supported by Dart.

26.1.0 #

  • Initial SDK release with the following functionalities:

  • Initialization:

    • Countly.init(config) - Initialize the SDK with configuration
    • Countly.defaultInstance - Access the default SDK instance
    • Countly.instance(key) - Access a specific SDK instance by key
    • Countly.disposeInstance(key) - Dispose a specific SDK instance
    • Countly.disposeAll() - Dispose all SDK instances
    • Multi-instance support with unique instance keys
  • Configuration Options (CountlyConfig)

    • appKey (required) - Application key
    • serverUrl (required) - Server URL (http:// or https://)
    • deviceId - Custom device ID (auto-generated if not provided)
    • userProperties - Initial user properties to set
    • storageMode - Storage mode (persistent or memory)
    • storageMethods - Custom storage implementation
    • startWithUnknownConsent - Start in unknown consent mode
    • giveConsent - Grant consent at initialization
    • logLevel - Logging verbosity level (error, warning, info, debug, verbose)
    • logger - Custom logger implementation (SdkLogger interface)
    • enableSDKLogs - Enable SDK internal logging
    • customRequestHeaders - Custom HTTP headers for requests
    • deviceMetricOverrides - Override collected device metrics
    • sbs - Initial SDK Behavior Settings
  • Events Module (sdk.events)

    • record(key, count, sum, dur, segmentation) - Record custom events with optional parameters
    • recordMetrics(metricOverride) - Record device metrics with optional overrides
    • Segmentation support for strings, numbers, booleans, and lists
  • Views Module (sdk.views)

    • startAutoStoppedView(viewName, {segmentation}) - Start an auto-stopped view
    • endActiveView({segmentation}) - End the currently active view
    • Automatic view duration tracking with heartbeat mechanism
    • View state recovery after app restart
  • Users Module (sdk.users)

    • setProperties(props) - Set user properties (named and custom)
    • pushToArray(key, values) - Add values to array property (allows duplicates)
    • addToSet(key, values) - Add unique values to array property
    • pullFromArray(key, values) - Remove values from array property
    • Named properties: name, username, email, organization, phone, picture, gender, byear
  • Consents Module (sdk.consents)

    • giveConsent() - Grant consent for data collection
    • revokeConsent() - Revoke consent and clear data
    • Unknown consent state support
  • Device ID Module (sdk.id)

    • changeWithMerge(newDeviceId) - Change device ID with server-side merge
    • changeWithoutMerge(newDeviceId) - Change device ID without merge (new user)
    • deviceId - Read-only access to current device ID
    • deviceIdType - Read-only access to device ID type (provided/generated)
  • SDK Behavior Settings (SBS)

    • Server-side configuration support
    • Automatic SBS fetching and caching
    • Queue size limits (event/request queues)
    • Key/value length limits
    • Tracking control (global, events, views)
    • Event blacklist/whitelist filtering
    • User properties blacklist/whitelist filtering
    • Segmentation blacklist/whitelist filtering
    • Event-specific segmentation filtering
  • Storage

    • Persistent storage support
    • Memory-only storage mode for pure Dart
    • Custom storage methods override
  • Networking

    • Automatic request queuing and retry
    • Request backoff mechanism
    • Custom HTTP headers support
    • Health check reporting
  • Logging

    • Configurable log levels
    • Custom logger implementation support
0
likes
60
points
180
downloads

Publisher

verified publishercount.ly

Weekly Downloads

Countly Dart SDK for tracking user actions, events, views, and user profiles on all platforms supported by Dart.

Homepage
Repository (GitHub)
View/report issues

Topics

#analytics #countly #events #tracking #user-profiles

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

http, meta, uuid, web

More

Packages that depend on countly_sdk_dart_core