React context provider for HumanBehavior SDK integration
HumanBehaviorProvider
must be used in a client component because the SDK requires browser APIs and cannot run during server-side rendering. Add “use client”
to your provider file or create a separate client component wrapper.HumanBehaviorProvider
is a React context provider that makes the HumanBehavior tracker available throughout your React component tree.
Example screenshot – your actual API key will be different.
apiKey
(string, optional)client
is provided.
Example:
client
(HumanBehaviorTracker, optional)options
(object, optional)redactFields
(string[], optional): CSS selectors for fields to redactoptions
parameter is defined but not yet implemented. For redactFields
, you’ll need to configure it after initialization using the tracker methods.humanBehavior
null
if not yet initialized.
queueEvent