• Resolved rpksc93019

    (@rpksc93019)


    Hi, I’m trying to capture a GCLID in a contact form so that when users from Google Ads click on our website and fill out a form, we get the GCLID in the submitted form. We have the backend code implemented, but had questions about how to implement the GCLID on the Forminator side. Right now, we have it so the GCLID is captured in a HTML field that looks like this:

    <p><input id=”gclid_field” name=”gclid_field” type=”hidden” value=”” /></p>

    And below that field is a hidden field given a label and query parameter from this WPMUDEV document: https://wpmudev.com/forums/topic/gclid-tracking-in-forminator-pro/

    Is this all that needs to be done to capture a GCLID on the WordPress side using forminator?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @rpksc93019

    I hope you’re well today!

    You don’t even need a HTML field there on the form, unless you want to actually show the value of GCLID to your visitors on the form.

    All you need is a single field of type “hidden” (available in form builder in Forminator) and in that field you need to set “Default value” option to “Query Parameter” and give a name of that parameter in “Query parameter” field, just like it’s shown on the picture in that other ticket.

    That’s all. The value of GCLID will be captured and saved with submission as a value of that hidden field.

    Kind regards,
    Adam

    Thread Starter rpksc93019

    (@rpksc93019)

    When I view the Elements on the contact page, the GCLID value does show the value, but as I start filling out the form, the value disappears. Upon successful form submission, there is no value in the GCLID field.

    Thread Starter rpksc93019

    (@rpksc93019)

    Is there any reason you can think of that the GCLID would be passed from the landing page and to the contact page, but would suddenly disappear upon the user starting to fill out the form?

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @rpksc93019

    This is odd, as long as the query parameter is on URL and the hidden field works it should keep the value.

    Could you export your form and share using https://pastebin.com/ so we can take a closer look?

    Guide to export the form:
    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    Best Regards
    Patrick Freitas

    Thread Starter rpksc93019

    (@rpksc93019)

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @rpksc93019,

    Thanks for sharing the export; however, I’m not able to replicate any such issue when tested.

    Could we know if there are any steps to replicate the issue? i.e. Load the page as follow:
    site.com/??gclid=abcd

    And it would show up in the hidden field? I tested as above, and the value of the hidden field does get saved after the form is submitted neither could find any issue with the fields appearing or disappearing.

    The issue sounds more like a conflict. Could you please run a conflict test and see whether it helps rule out what might be causing it?

    You can check the following flowchart on how to run a conflict test:
    https://wpmudev.com/wp-content/uploads/2015/09/Support-Process-Support-Process.gif

    If the issue is still the same even after the conflict test, then please do share the page URL where you have the form so that we could have a better idea.

    Kind Regards,
    Nithin

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @rpksc93019 ,

    We haven’t heard from you for a while now, so it looks like you don’t need our assistance anymore.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

    Thread Starter rpksc93019

    (@rpksc93019)

    I contacted support via WPMU Dev and they redirected me to WP Rocket.

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @rpksc93019

    We replied to your ticket on the Pro forum, can you please check my recent suggestions?

    We will keep the support from the premium forum since you started the trial.

    Best Regards
    Patrick Freitas

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to capture GCLID from a contact form’ is closed to new replies.