ampproject / ampproject/amphtml

amp-consent: let developers show existing consent choices on reprompt

Open
#33,530 4 comments 1 reaction 1 assignee Claimed by @micajuine-ho View on GitHub
Stale Type: Feature Request
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

The new granular amp-consent (see #31607, #26735) lets site developers specify a set of consent purposes that users can accept or reject. It also supports the existing `reprompt` action, which lets users make their consent choices again by showing the dialog box that the developer has specified, as in:

```html

...


  Do you want to make your consent choices again?
  I do!

```

Unfortunately the site developer has no way to show existing choices in the dialog. The user might assume their choices were never stored in the first place.

To enable this, I imagine we'd need some sort of binding mechanism. So, for example, a checkbox input that let the user make a consent choice for marketing cookies would have to look something like this:

```html

```

/cc @micajuine-ho

also paging @SimonHogstromRonbol for input here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.