• Resolved tommycbd

    (@tommycbd)


    Is there a specific way to get UTM codes to show in email notifications for contact form submissions so I can see what page a user was on when they submitted a form and log the entire URL ..not just the page path ending with the forward slash?

    In the body/settings of my email notifications that arrive when someone fills out a web form has {embed_url}, {refer_url} which will work to show the page…but the UTM codes don’t stick. I want to be able to see the UTM source like Facebook or Google etc (UTM_Source=””).

    I know there might be a way to do this with hidden fields in the form.. is there documentation on how to set this up?

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @tommycbd,

    I hope this message finds you well.

    You are right, this is possible using Hidden fields. Please select the “Query Parameter” option as the Default Value for the Hidden field and configure utm_source as the Query Parameter.

    I hope the following documentation helps you further:
    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#hidden-field
    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#pre-populate-form-field-values

    Please feel free to get back to us if you need any further clarification.

    Best Regards,
    Nebu John

    Thread Starter tommycbd

    (@tommycbd)

    Hi I tried that setting and it still didn’t pull the utm source. I was curious if I had a setting wrong like the AJAX method/page reload in submission behavior… or if its because I have a thank you page redirect after submission.

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @tommycbd,

    Can you please share an example URL where you would like to fetch the UTM codes from so that we can take a closer look at this?

    Please also share an export of the form using Google Drive or Pastebin.com so that we can check this further. I hope the following guide comes in handy: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    Looking forward to hearing back from you.

    Best Regards,
    Nebu John

    Thread Starter tommycbd

    (@tommycbd)

    The form at the bottom of this page for example:

    https://www.bethanyathleticclub.com/kids/party-and-facility-rentals/


    Can I paste the export here?: (I redacted some email info, etc) Please modify my comment if its sensitive info below:

    (

    {“type”:”form”,”data”:{“fields”:[{“id”:”name-1″,”element_id”:”name-1″,”form_id”:”wrapper-1511347711918-1669″,”parent_group”:””,”type”:”name”,”cols”:”6″,”required”:”true”,”field_label”:”First & Last Name”,”prefix_label”:”Prefix”,”fname_label”:”First Name”,”mname_label”:”Middle Name”,”lname_label”:”Last Name”,”wrapper_id”:”wrapper-1511347711918-1669″,”conditions”:[]},{“id”:”email-1″,”element_id”:”email-1″,”form_id”:”wrapper-1511347711918-1669″,”parent_group”:””,”type”:”email”,”cols”:”6″,”required”:”true”,”field_label”:”Email Address”,”validation”:”1″,”validation_text”:””,”wrapper_id”:”wrapper-1511347711918-1669″,”conditions”:[]},{“id”:”phone-1″,”element_id”:”phone-1″,”form_id”:”wrapper-1311247712118-1194″,”parent_group”:””,”type”:”phone”,”cols”:”6″,”required”:”1″,”field_label”:”Phone Number”,”validation”:”none”,”phone_validation_type”:”standard”,”validation_text”:””,”wrapper_id”:”wrapper-1311247712118-1194″,”conditions”:[]},{“id”:”text-1″,”element_id”:”text-1″,”form_id”:”wrapper-1311247712118-1194″,”parent_group”:””,”type”:”text”,”options”:[],”cols”:”6″,”conditions”:[],”wrapper_id”:”wrapper-1311247712118-1194″,”input_type”:”line”,”limit_type”:”characters”,”field_label”:”How Did You Hear About us?”,”required”:”1″},{“id”:”textarea-1″,”element_id”:”textarea-1″,”form_id”:”wrapper-1988247712118-9871″,”parent_group”:””,”type”:”textarea”,”cols”:”12″,”required”:”1″,”field_label”:”Leave a Message”,”input_type”:”paragraph”,”limit”:”0″,”limit_type”:”characters”,”wrapper_id”:”wrapper-1988247712118-9871″,”placeholder”:”Let us know about your party!”,”conditions”:[]},{“id”:”hidden-1″,”element_id”:”hidden-1″,”form_id”:”wrapper-7766-3276″,”parent_group”:””,”type”:”hidden”,”options”:[],”cols”:”12″,”conditions”:[],”wrapper_id”:”wrapper-7766-3276″,”field_label”:”Lead Source”,”default_value”:”query”,”prefill”:”utm_source”}],”settings”:{“pagination-header”:”nav”,”paginationData”:{“pagination-header-design”:”show”,”pagination-header”:”nav”},”formName”:”Form name”,”version”:”1.46.2″,”form-border-style”:”dashed”,”form-padding”:””,”form-border”:””,”fields-style”:”open”,”field-image-size”:”custom”,”validation”:”on_submit”,”akismet-protection”:”1″,”form-style”:”default”,”form-substyle”:”material”,”enable-ajax”:”true”,”autoclose”:”true”,”submission-indicator”:”show”,”indicator-label”:”Submitting…”,”cform-color-option”:”theme”,”basic-field-image-size”:”custom”,”basic-fields-style”:”open”,”store_submissions”:”1″,”description-position”:”above”,”form-type”:”default”,”submission-behaviour”:”behaviour-thankyou”,”thankyou-message”:”Thank you for contacting us, we will be in touch shortly.”,”submitData”:{“custom-submit-text”:”Submit”,”custom-invalid-form-message”:”Error: Your form is not valid, please fix the errors!”},”validation-inline”:”1″,”form-expire”:”no_expire”,”form-padding-top”:”0″,”form-padding-right”:”0″,”form-padding-bottom”:”0″,”form-padding-left”:”0″,”form-border-width”:”1″,”form-border-radius”:”1″,”cform-label-font-family”:”Roboto”,”cform-label-custom-family”:””,”cform-label-font-size”:”12″,”cform-label-font-weight”:”bold”,”cform-title-font-family”:”Roboto”,”cform-title-custom-family”:””,”cform-title-font-size”:”45″,”cform-title-font-weight”:”normal”,”cform-title-text-align”:”left”,”cform-subtitle-font-family”:”Roboto”,”cform-subtitle-custom-font”:””,”cform-subtitle-font-size”:”18″,”cform-subtitle-font-weight”:”normal”,”cform-subtitle-text-align”:”left”,”cform-input-font-family”:”Roboto”,”cform-input-custom-font”:””,”cform-input-font-size”:”16″,”cform-input-font-weight”:”normal”,”cform-radio-font-family”:”Roboto”,”cform-radio-custom-font”:””,”cform-radio-font-size”:”14″,”cform-radio-font-weight”:”normal”,”cform-select-font-family”:”Roboto”,”cform-select-custom-family”:””,”cform-select-font-size”:”16″,”cform-select-font-weight”:”normal”,”cform-multiselect-font-family”:”Roboto”,”cform-multiselect-custom-font”:””,”cform-multiselect-font-size”:”16″,”cform-multiselect-font-weight”:”normal”,”cform-multiselect-tag-font-family”:”Roboto”,”cform-multiselect-tag-custom-font”:””,”cform-multiselect-tag-font-size”:”12″,”cform-multiselect-tag-font-weight”:”medium”,”cform-dropdown-font-family”:”Roboto”,”cform-dropdown-custom-font”:””,”cform-dropdown-font-size”:”16″,”cform-dropdown-font-weight”:”normal”,”cform-calendar-font-family”:”Roboto”,”cform-calendar-custom-font”:””,”cform-calendar-font-size”:”13″,”cform-calendar-font-weight”:”normal”,”cform-button-font-family”:”Roboto”,”cform-button-custom-font”:””,”cform-button-font-size”:”14″,”cform-button-font-weight”:”500″,”cform-timeline-font-family”:”Roboto”,”cform-timeline-custom-font”:””,”cform-timeline-font-size”:”12″,”cform-timeline-font-weight”:”normal”,”cform-pagination-font-family”:””,”cform-pagination-custom-font”:””,”cform-pagination-font-size”:”16″,”cform-pagination-font-weight”:”normal”,”payment_require_ssl”:””,”submission-file”:”delete”,”trigger_from”:”builder”,”template_type”:”preset”,”template_name”:”Contact Form”,”form_name”:”form-name”,”form_status”:”publish”,”cform-color-settings”:”1″,”input-border”:”#333333″,”input-placeholder”:”#333333″,”input-color”:”#333333″,”field-border”:””,”sc_email_link”:”1″,”sc_message”:”
    Your form has been saved as draft and a resume link has been generated so you can return to the form anytime within {retention_period} days from today. Copy and save the link or enter your email address below to have the link sent to your mail.<\/p>
    These fields weren’t saved to your submission draft: Paypal, Stripe, Signature, Password, Captcha, and Upload. Kindly fill them out before submitting the form.<\/p>”,”disable_validations”:””,”notification_count”:1,”previous_status”:”publish”,”cform-label-color”:”#333333″,”label-helper-color”:”#ffffff”,”select-value-static”:”#333333″,”dropdown-option-color-static”:”#333333″,”form-font-family”:””,”select-background-static”:”#333333″,”select-border-static”:”#333333″,”select-background-active”:”#ffffff”,”select-background-hover”:”#ffffff”,”select-icon-static”:”#333333″,”dropdown-background”:”#e6e6e6″,”dropdown-option-background-hover”:”#17a8e3″,”dropdown-option-color-active”:”#333333″,”dropdown-option-color-hover”:”#333333″,”dropdown-option-background-active”:”#ffffff”,”cform-asterisk-color”:”#10488a”,”select-icon-hover”:”#333333″,”select-border-hover”:”#333333″,”h”:”1″},”client_id”:null,”integration_conditions”:[],”behaviors”:[{“slug”:”behavior-1234-4567″,”label”:””,”autoclose-time”:”5″,”autoclose”:”true”,”newtab”:”sametab”,”thankyou-message”:”Thank you for contacting us, we will be in touch shortly.”,”email-thankyou-message”:””,”manual-thankyou-message”:””,”submission-behaviour”:”behaviour-redirect”,”redirect-url”:”\/form-confirmation”}],”notifications”:[{“slug”:”notification-1234-4567″,”label”:”Email Settings”,”email-recipients”:”default”,”recipients”:”[email protected]”,”email-subject”:”Facility \/ Party Rental Contact Form”,”email-editor”:”
    You have a new website form submission:
    {all_fields}<\/p>\n
     <\/p>\n
    Date: {submission_date}<\/p>\n
    Time: {submission_time}<\/p>\n
    Page: {embed_url}
    {refer_url}<\/p>\n
    {submission_time}<\/p>”,”email-attachment”:”true”,”type”:”default”,”conditions”:[],”replyto-email”:”{email-1}”,”cc-email”:”[email protected]”}]},”status”:”publish”,”version”:”1.46.2″}

    )

    • This reply was modified 1 month, 1 week ago by tommycbd.
    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @tommycbd,

    I am afraid that posting the export here will format the content as per the security rules here in this forum. Hence, it failed to import. Can you please share the form export using Pastebin.com instead?

    Best Regards,
    Nebu John

    Thread Starter tommycbd

    (@tommycbd)

    Plugin Support Williams – WPMU DEV Support

    (@wpmudevsupport3)

    Hi @tommycbd

    I hope you’re doing well.

    I’ve tested your form and it seems to be working properly, the param is getting added when you visit yoursite.com/where-the-form-is-published?utm_source=source

    In this example, I’ve used bing: https://snipboard.io/GCsK7w.jpg

    The only difference is that I’ve added {hidden-1} to the email notification and that’s why you see the other “bing”.

    Also on the submissions:

    https://snipboard.io/khinAT.jpg

    Could you please confirm if that’s how you’re testing it? (using the URL yoursite.com/where-the-form-is-published?utm_source=source)

    I hope to hear back from you soon.
    Best Regards,
    Williams Valerio

    Thread Starter tommycbd

    (@tommycbd)

    Hmm on mine it stripped the UTM

    Form/URL View:
    https://snipboard.io/gyO0q8.jpg

    Email notification (doesn’t even show entire url it was sent on or utm source):
    https://snipboard.io/nATwav.jpg

    Thread Starter tommycbd

    (@tommycbd)

    I tried testing with these Behavior settings turned on and now the utm source works:

    Load form using AJAX

    Prevent page caching on form pages

    (the full url still doesnt pull through but I’m happy the utm shows now)

    • This reply was modified 1 month, 1 week ago by tommycbd.
    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @tommycbd,

    We’re glad to hear that the issue has been resolved after you changed the setup to load the form through Ajax and excluded the form page from caching.

    (the full url still doesnt pull through but I’m happy the utm shows now)

    This behavior is expected when the Embed URL is used within a Hidden field. Upon submission, only the base URL is captured, and any query parameters are not included.

    I hope that helps. Please feel free to get back to us if you need any further clarification.

    Best Regards,
    Nebu John

    Thread Starter tommycbd

    (@tommycbd)

    Thanks that is all for now!

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @tommycbd,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open this thread if you need any further assistance.

    Best Regards,

    Nithin

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

You must be logged in to reply to this topic.