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)humanBehavior
null
if not yet initialized.
queueEvent