• Hello!

    On my contact form on our contact page it says the id is 19 when looking in wordpress. However, looking at html, I cannot find this ID. The only thing I can find is id=”wpcf7-f19-p96-o1″.

    Either way, I want to know what the form ID is because I want to be able to track form ID in Google Tag Manager. At the moment however, the variable “form ID” a string is never found so I must assume form ID is missing from my form?

    Question: How do I make sure that my contact form has a form ID that can be located? How do I add it?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter ibl92

    (@isabella92)

    Hello,

    thank you but can you please explain how I add the actual form ID to the contact form in wordpress? The articles don’t seem to cover that.

    Hey, isabella92, I’m another CF7 user.

    If you’re using the shortcode, you could add the id to the form like this (via the html_id attribute): [contact-form-7 id="1234" title="Contact form 1" html_id="contact-form-1234" html_class="form contact-form"]

    Alternatively, if you’re comfortable with PHP, you can look into this filter:
    wpcf7_form_id_attr which modifies the id attribute.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to find form ID of contact for7’ is closed to new replies.