Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default setting for accepting a service #511

Open
DanYouCan opened this issue Jun 7, 2024 · 0 comments
Open

Default setting for accepting a service #511

DanYouCan opened this issue Jun 7, 2024 · 0 comments

Comments

@DanYouCan
Copy link

DanYouCan commented Jun 7, 2024

How can you ensure that a service is accepted first by default when a website is accessed for the first time? Without having to give consent first. For example, with an embedded IFrame for Google Maps. The contextual consent should also not (yet) be displayed.

The contextual consent should only appear after consent has been explicitly declined.

I should also add that for Switzerland, for a website that only applies to Switzerland, it is currently not necessary to obtain the user's consent.

I had no success with the following code:

{
name: 'googlemaps',
title: 'Google Maps',
purposes: ['functional'],

default: true,
// required: false,
optOut: true,

onAccept: `
	console.log('klaro-google-maps-accepted');
	document.querySelectorAll('.gmap-klaro').forEach(e => e.classList.replace('gmap-klaro', 'gmap'));
`,
onDecline: `
	console.log('klaro-google-maps-notaccepted');
	document.querySelectorAll('.gmap').forEach(e => e.classList.replace('gmap', 'gmap-klaro'));
`,
}

Is there anything else to consider? Thanks in advance for any help or hint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant