JavaScript SDK

Overview

The JavaScript SDK provides frontend utilities for managing consent, cookies, and compliance events.

Key Features

    1. Consent Status Management: Check and update user consent status in real time.
    2. Cookie Helpers: Read, set, and delete cookies with helper functions.
    3. Event Dispatching: Listen for and trigger compliance-related events (e.g., consent given, scan completed).
    4. Integration Utilities: Easily integrate with custom scripts or third-party tools.
    5. Usage Example

      `js
      // Check consent status
      ComplyFlowSDK.getConsentStatus();

      // Listen for consent changes
      ComplyFlowSDK.on(‘consentChanged’, (status) => {
      // Custom logic here
      });
      `

      Tips

    6. Use the SDK to build custom banners, analytics, or integrations.
    7. See developer documentation for full API details.

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket