Creates a new IdGraph instance.
Unique identifier for this container/application
Configuration options for the IdGraph instance
Adds a custom signal with automatic name prefixing.
The custom signal data to add (name will be prefixed with "d_")
Adds a signal to the collection queue.
The signal data to add
This method is typically used internally by modules. For adding custom signals, consider using addCustomSignal instead.
Clears all collected signals from the queue.
This method removes all signals without sending them. To send signals before clearing, use flushSignals instead.
Sends all collected signals to the analytics endpoint and clears the queue.
Array of signals that were flushed (empty if no signals or sampling prevented sending)
Returns the current array of collected signals.
Array of all signals currently in the queue
This method does not clear the signals array. Use flushSignals to send and clear signals, or clearSignals to just clear them.
IdGraph class for collecting and managing user identity signals.
Remarks
The IdGraph system collects various signals about users and their devices, manages signal collection through pluggable modules, and sends collected data to an analytics endpoint. It includes features like:
Example
Basic usage: