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.
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
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,
“…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.
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.