@dbosoft/react-consent-manager

0.5.6 • Public • Published

Consent Manager

A GDPR-compliant consent manager.

Props

  • version (integer) - version number, bump up to override previous consent preferences
  • container (string) - id of container where the consent manager should live
  • companyName (string) - your company name to be inserted in various copy
  • privacyPolicyLink (string) - link to your company's privacy policy
  • writeKey (string) - your production write key
  • integratedServices (array of objects) - use this to override the category or description of a service provided by integration service
    • name - name of the integration, must match the integration you are overriding
    • category [optional] - new category name
    • description [optional] - new description
  • categories (array) - State of toggle
    • name - name of category
    • description - description for the category
  • additionalServices (array of objects) - additional integrations outside of integration service that you wish to include in the consent manager
    • name - name of service
    • description - description of service
    • category - category of service
    • body [optional] - javascript body associated with service If present, overrides url below
    • url [optional] - url of js file associated with service
    • async (bool) [optional] - add async property to script element
    • addToBody (bool) [optional] - inject script before closing <body> tag
    • dataAttrs (arr) [optional] - array of data- attributes to add to script tag
      • name (str) - name of data attribute (data-name)
      • value (str) - value of data attribute to set

Readme

Keywords

none

Package Sidebar

Install

npm i @dbosoft/react-consent-manager

Weekly Downloads

8

Version

0.5.6

License

MPL-2.0

Unpacked Size

62.8 kB

Total Files

17

Last publish

Collaborators

  • dbosoft-package-maintainers
  • fwagner_dbosoft