如何在 AMP 页面上实施 AMP-Consent Component 流程?

How to implement AMP-Consent Component flow on AMP Page?

新引入的 AMP-Consent 组件有一些非常好的功能,我会对其进行调整以符合新的 cookie 政策。

https://github.com/ampproject/amphtml/issues/13716

我的问题是:如何实现端点以及如何触发它 (xhr)?到目前为止,我还没有找到真正有效的解决方案。

您可以在 ampbyexample.com 上找到关于如何使用 amp-consent 的两个示例流程。