To add One Tap to your Accelerated Mobile Pages,
Add One Tap into an intermediate Iframe hosted by your own website.
Embed the intermediate iframe, instead of One Tap, into your AMP pages via the
component.
Place the following code snippet into any AMP pages that you want Google One Tap to display:
<script async custom-element="amp-onetap-google" src="https://cdn.ampproject.org/v0/amp-onetap-google-0.1.js"></script> ... <amp-onetap-google layout="nodisplay" data-src = "https://example.com/onetap_iframe.html"> </amp-onetap-google>
Set the data-src
attribute to the URI of your intermediate iframe.