README
Consent Manager
A GDPR-compliant consent manager.
Props
version
(integer) - version number, bump up to override previous consent preferencescontainer
(string) - id of container where the consent manager should livecompanyName
(string) - your company name to be inserted in various copyprivacyPolicyLink
(string) - link to your company's privacy policysegmentWriteKey
(string) - your production segment write keysegmentServices
(array of objects) - use this to override the category or description of a service provided by Segmentname
- name of the Segment integration, must match the integration you are overridingutilServerRoot
- root path of the instance of HashiCorp'sweb-utility-server
to use. This is used to fetch integrations based on segment write key.category
[optional] - new category namedescription
[optional] - new description
categories
(array) - State of togglename
- name of categorydescription
- description for the category
additionalServices
(array of objects) - additional integrations outside of Segment that you wish to include in the consent managername
- name of servicedescription
- description of servicecategory
- category of servicebody
[optional] - javascript body associated with service If present, overridesurl
belowurl
[optional] - url of js file associated with serviceasync
(bool) [optional] - addasync
property to script elementaddToBody
(bool) [optional] - inject script before closing<body>
tagdataAttrs
(arr) [optional] - array ofdata-
attributes to add to script tagname
(str) - name of data attribute (data-name
)value
(str) - value ofdata
attribute to set