Add cookie group dependencies
Enable the users to set dependencies of cookie groups.
Requirements:
- Add a field that takes comma-separated Group-IDs
- The current group will be dependent on all of the given Groups
- When the dependent group's checkbox is checked, all of the groups it depends on will automatically be checked
- When a "master" group's checkbox is unchecked, all of the groups that depend on it will automatically be unchecked.
Use case: On your website you load Google Tag Manager that on its hand may or may not load Google Analytics, based on the user's consent settings. Tag Manager can exist on it's own if it's granted consent alone. Analytics may not exist on its own, that's why you may not select only Analytics without having selected Tag Manager