Add page slug to Mailchimp tags
-
Hi there,
I need to target my Audience based on the page they subscribed from.
So I’d like to add the page slug to as TAGS for my new subscribers.
Following this example I tried this code:
function mc4wp_add_tags( MC4WP_MailChimp_Subscriber $subscriber ) { global $post; $subscriber->tags[] = $post->post_name; return $subscriber; } add_filter( 'mc4wp_subscriber_data', 'mc4wp_add_tags' );
Unfortunately it doesn’t work, could you help?
Thanks,
Simone
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add page slug to Mailchimp tags’ is closed to new replies.