【问题标题】:Is there a way to retrieve GDPR consent string from <amp-consent> within an <amp-iframe>?有没有办法从 <amp-iframe> 中的 <amp-consent> 检索 GDPR 同意字符串?
【发布时间】:2020-07-22 15:46:54
【问题描述】:

我尝试使用 amp-iframe 元素中的 postMessage 检索 GDPR 同意字符串,但它根本不起作用。

有没有办法在 amp-consent 和 amp-iframe 中与 CMP 通信?

谢谢

【问题讨论】:

    标签: gdprconsentform cookieconsent amp-iframe


    【解决方案1】:

    是的:

    amp-consent 缓存许可信息并将其通过许可元数据对象以及非空许可字符串传递给供应商。您可以在下面找到许可元数据对象及其支持的字段的示例。

    {
      "consentStringType": {enum} [1: TCF V1, 2: TCF V2, 3: US Privacy String] (optional),
      "gdprApplies": {boolean} (optional),
      "additionalConsent": {string} (optional)
    }
    

    (来自:https://github.com/ampproject/amphtml/blob/master/extensions/amp-consent/integrating-consent.md#consentmetadata

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多