0

I am trying to embed a Google Form on my AMP page but when I try to use the AMP code. It just says "Loading..." where the Google Form suppose to be:http://mogotest.com/amp/purple-mattress-coupon.html (see on mobile)

Steps I took so far. 1. I put this code in the header of the AMP page

<script async custom-element="amp-iframe"
  src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script>
  1. I put this Google Form code on the page.
<amp-iframe src="https://docs.google.com/forms/d/e/1FAIpQLSeFJf7DVgmzPEE1UfYXE3Oy0aBef80QXmRtLfKd1-b8aek0IQ/viewform?embedded=true" width=“100%” height="678" frameborder="0" marginheight="0" marginwidth="0">Loading…</amp-iframe>

Does anyone know how to fix this or is the issue that my AMP page is not HTTPS?

4
  • HTTPS and CORS are prerequisites
    – Jay Gray
    Commented Nov 17, 2019 at 13:28
  • so it it required to have https to have a google form working?
    – mo1999
    Commented Nov 17, 2019 at 16:36
  • ibid previous comment
    – Jay Gray
    Commented Nov 19, 2019 at 16:48
  • @JayGray HTTPS is not required, its required for some features like video, iframes, etc..
    – Rahul Jain
    Commented Nov 21, 2019 at 8:48

1 Answer 1

1

You need to move your site to HTTPS in order to work with video, iframes.

In below article it is clearly mentioned what will work with http and what will not work without https.

https://amp.dev/documentation/guides-and-tutorials/start/create/basic_markup/?format=websites

1
  • ibid previous comment. the OP does not seem to accept the advice.
    – Jay Gray
    Commented Nov 21, 2019 at 13:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.