For the complete documentation index, see llms.txt. This page is also available as Markdown.

Opt-out

When opt-out is enabled, the SDK stops sending all events.

The React SDK is built on top of the JavaScript SDK. The opt-out API is the same as the JavaScript SDK.

Configuration at Initialization

import { createInstance, HackleProvider } from "@hackler/react-sdk";

const config = {
    optOutTracking: true
};

const hackleClient = createInstance("YOUR_BROWSER_SDK_KEY", config);

ReactDOM.render(
  <HackleProvider hackleClient={hackleClient}>
    <YourApp />
  </HackleProvider>,
  document.getElementById('root')
);

Runtime Opt-out Control

Persistence Management

Last updated