Adding mailchimp code to header NOT working

I’ve tried adding the MailChimp code to the functions.php
I do use the child theme, however, it does not work with MailChimp, but my analytics script works fine.

add_action('wp_head', 'add_header_code');
function add_header_code(){
?>
     <!-- analytics script here -->   WORKS
    <!-- mailchimp script here --> DOES NOT WORK

    <?php
};

I’ve tried using the plugin:

Does NOT work.

Hello Zosaria,

Thanks for writing in!

Please take a look at solution shared in following thread:

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.