Hi @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 END