Easily build and embed forms on your site. Try HubSpot Forms for free.  

Why is my embedded form not working on my WordPress page?

Last updated: April 3, 2018


If your embedded form on your WordPress page is not working or is not collecting data, verify that the embed code on your WordPress page matches the code in HubSpot. 

  • Navigate to your form embed code in HubSpot.
  • Navigate to the page on WordPress where your Hubspot form is (use a new window and place it next to the window with your form embed code open so you can see both at once).
  • Right-click anywhere on the page > choose View page source.
  • Locate the form embed code on the page by hitting Ctrl+F (or Cmd+F on a Mac) on your keyword and searching for your HubSpot ID (the HubSpot analytics tracking code also contains your HubSpot ID, so look for formID as well to avoid confusion)
  • Compare the embed code on the page to the embed code in the form editor; the snippets should match.
    • WordPress may convert "&&" in the embedded form code to "&&" which will break the functionality of the code
    • XHTML Wordpress themes will add <![CDATA[ ]]> tags around the Javascript, which should not affect whether the form renders.
  • If you are seeing that WordPress is altering the embed code, you may need to use a third-party plugin to add the form to the page/post in the form of a shortcode. One plugin that allows users to insert CTA codes via a shortcode (therefore preserving the script tags) is Insert HTML Snippet which can be downloaded here: https://wordpress.org/plugins/insert-html-snippet/.
New Call-to-action

Was this article helpful?

If you still need help you can get answers from the , or to contact support.

Free Inbound Marketing Training Learn inbound marketing techniques that range from creating content, using  social promotion, converting and nurturing leads, and all the way to marketing  to your customers. Start the course