ccpa

How to construct AMP cookie consent with the help of amp-story-consent?

五迷三道 提交于 2020-06-09 06:01:28
问题 I'd like to add a cookie consent to my AMP static website. I'd like to take advantage of the modal dialog what the amp-story-consent could provide to me. I studied various examples, maybe the most complete is this: https://playground.amp.dev/?url=https%3A%2F%2Fpreview.amp.dev%2Fdocumentation%2Fexamples%2Fuser-consent%2Fstory_user_consent&format=websites (example documentation https://amp.dev/documentation/examples/user-consent/story_user_consent/?referrer=ampbyexample.com) My problem is that

How to get AMP Cookie consent modal dialog backdrop working?

最后都变了- 提交于 2020-06-01 05:52:06
问题 I'd like to implement a cookie consent on my static AMP website. The amp-story-consent so far seems to not fit that (cookie consent has no pages or bookend, please chip in if you know a solution for How to construct AMP cookie consent with the help of amp-story-consent?). I'm trying to implement my own modal dialog following the examples. <amp-consent layout="nodisplay" id="cookie-consent-element"> <script type="application/json"> { "consents": { "my-consent": { "checkConsentHref": "https:/