9stepsemail
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Add a tag based on UTM parametersThanks @jpowersdev
It doesn’t seem to be working. The form shows me this error when I try to subscribe:
The resource submitted could not be validated. For field-specific details, see the ‘errors’ array.
Error with field: Data did not match any of the schemas described in anyOf.Do I need to add all the tags to that form or none?
- This reply was modified 5 years, 5 months ago by 9stepsemail.
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Add a tag based on UTM parametersHi @liljimmi and @jpowersdev
I’m not sure how I should apply what you’re suggesting.
Could you tell me if this is what you’re referring to?
// UTM CAMPAIGN END// UTM CAMPAIGN START add_filter( 'yikes-mailchimp-filter-before-submission', 'add_ucampaign_to_mailchimp_submission', 10, 1 ); function add_ucampaign_to_mailchimp_submission( $mc_form_variables ) { // Check URL $_GET vars for utm_campaign if ( isset( $_GET['utm_campaign'] ) && ! empty( $_GET['utm_campaign'] ) ) { $mc_form_variables['tags'][] = $_GET['utm_campaign']; } return $mc_form_variables; } // UTM CAMPAIGN ENDForum: Plugins
In reply to: [Easy Forms for Mailchimp] Add a tag based on UTM parametersHello,
May I follow up on this, please?
Would really appreciate your help with this one.
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)