Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Consent API #10

Open
NejcZdovc opened this issue Mar 17, 2021 · 0 comments
Open

Consent API #10

NejcZdovc opened this issue Mar 17, 2021 · 0 comments
Labels
type/new_feature New feature request related

Comments

@NejcZdovc
Copy link
Contributor

trends('consent', options)

options Object This is key/values pair object where key is provider/category for example facebook and value is boolean. true if user consents for data to be send to facebook and false if they do not

Example

trends('consent', { 
  facebook: true,
  google: false
})

Another way to use this api is based on categories.

Example

trends('consent', { 
  analytics: false,
  advertising: true
})

User can also just enable everything

Example

trends('consent', { 
  all: true
})
@NejcZdovc NejcZdovc added the type/new_feature New feature request related label Mar 17, 2021
@NejcZdovc NejcZdovc modified the milestone: Release 0.7.0 Mar 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/new_feature New feature request related
Projects
None yet
Development

No branches or pull requests

1 participant