maddiemadan
maddiemadan

Reputation: 103

Pass GDPR consent string into amp-iframe

The consent string can be used in rtc-config in amp-ad component using the CONSENT_STRING macro but is there a way to use the consent string in the src attribute of amp-iframe?

Upvotes: 4

Views: 281

Answers (1)

Patrick
Patrick

Reputation: 13974

No, there is no logic in the AMP library to provide this. You would need to generate this server side, and update the rendered output of the iframe to include that value in the URL.

source: work at Google on AMP

Upvotes: 1

Related Questions