• Resolved bydesigndm

    (@bydesigndm)


    We’re using Contact Form 7 to collect lead contact information. We added the Easy UTM tracking with contact form 7 plugin to capture UTM parameters from links we provide in posts. That gives us hidden fields with the parameters that we’ve added to our CF7 contact form.

    How do we send the information in the hidden fields to Mailchimp? I’ve tried about every combination I can think of to pass the values, but nothing seems to work. Any advice or help?

    One of the MC fields I want to fill is “USOURCE” and the hidden field is “utm_source” – the others are similar.

    Thanks –

    • This topic was modified 6 months ago by bydesigndm.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    In CF7 form, please add a prefix “MC4WP-” to the field names you wish to send to your MailChimp.com account. Once this is done, please test again.

    Thread Starter bydesigndm

    (@bydesigndm)

    Thank you for your reply.

    I’d like to clarify:
    From Easy UTM I added this to my form: [hidden utm_source default:get], along with other UTM parameters.

    Then I added this to my form: [mc4wp-USOURCE id:utm_source]
    where “USOURCE” is the target field in MailChimp and “utm_source” is (or should be) the parameter that gets captured by Easy UTM.

    I placed the ‘hidden’ fields at the top of the form and the form to MC actions just before the submit button. The name and email fields work fine.

    Here’s the entire test form:

    [hidden utm_source default:get]
    [hidden utm_medium default:get]
    [hidden utm_campaign default:get]

    Your name [text* mc4wp-FNAME id:name]

    Your email [email* mc4wp-EMAIL id:email]

    [mc4wp-USOURCE id:utm_source]

    [submit “Submit”]

    Thanks again.


    Plugin Contributor Lap

    (@lapzor)

    Can you share a link to where I can see this form on your site? Thanks

    Thread Starter bydesigndm

    (@bydesigndm)

    You can see it here: https://www.bydesignthestore.com/lead-capture-test/

    After trying to tweak it, now the code code to send to MC is visible.

    Plugin Contributor Lap

    (@lapzor)

    Please remove [mc4wp-USOURCE id:utm_source] from the form.

    I tried to load the page with a utm_source get parameter, and CF7 did not fill the parameter in the hidden field, so it seems that’s not working in the first place. I recommend you ask CF7 for support on that. Once you get that value to actually be added to the hidden field utm_source , if you have a field named exactly the same (utm_source) in Mailchimp, MC4WP will likely pick that up and forward the value to Mailchimp. But first CF7 has to correctly pick up that value…

    If you are using a normal MC4WP form instead of a CF7 forms we have some other way to insert GET parameters (such as utm_source etc) in the form.

    Kind regards,

    Thread Starter bydesigndm

    (@bydesigndm)

    “…we have some other way to insert GET parameters…” I’d be interested in that.

    I looked here: https://www.mc4wp.com/kb/populate-fields-url-data/
    We’d like to be able to collect the parameters after the user has browsed other pages, so we know where they originally got the link.

    Thanks!

    Plugin Contributor Lap

    (@lapzor)

    You mean you want to get the get parameter from another page, earlier in the browser sessions?

    You would need to write your own code to keep that parameter in PHP Session storage, and then add it back into the page when you need it. There is no simple ready made solution available for that I think.

    Thread Starter bydesigndm

    (@bydesigndm)

    More or less, yes, that’s what we want. We’ll put a UTM tagged link in a post email, etc that will send them to a post or page on our site. Then, if they choose to give us their information after browsing the site, we’ll know what channel and campaign they used to get to us.

    It appeared that the CF7 related plugin UTM for CF7 should do that. I’ll pursue it with them as well.

    Thank you for your help.

    Plugin Contributor Lap

    (@lapzor)

    ok, if that plugin can somehow show those get parameters in the form we could go from there, but right now I don’t see them at all even after adding them to the url on the page with the form itself.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Send Hidden UTM Fields to Mailchimp’ is closed to new replies.