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, overridesurl
below -
url
[optional] - url of js file associated with service -
async
(bool) [optional] - addasync
property to script element -
addToBody
(bool) [optional] - inject script before closing<body>
tag -
dataAttrs
(arr) [optional] - array ofdata-
attributes to add to script tag-
name
(str) - name of data attribute (data-name
) -
value
(str) - value ofdata
attribute to set
-
-