Support » Networking WordPress » MailChimp Not connecting with my site for mc.js script tag

  • Resolved nurhridoy1

    (@nurhridoy1)


    I have a website built with a Hello theme on WordPress. Now when I want to connect with the MailChimp audience then MailChimp shows me this Error: Your site is not connected. We couldn’t find the required mc.js script tag on your site. Please ensure the script is present, the HTML is valid, and try again.
    I have pasted the MailChimp code into the header.php in the Hello theme file editor. Is there anyone who connects the MailChimp with the Hello theme? This is my client’s website. Please someone give me a quick solution.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • If you view the source code of the page, mc.js is not present. When you say you…

    ‘pasted the MailChimp code into the header.php’

    …where did you put it? I suspect you’ve either accidentally placed inside a PHP condition, or more likely, before the <!DOCTYPE> tag.

    Make sure it’s placed somewhere between <head> and </head>, probably just before the </head> might be best unless MailChimp has an actual recommendation for this placement.

    Report back here with your results.

    • This reply was modified 5 months, 1 week ago by Michael Ott.
    • This reply was modified 5 months, 1 week ago by Michael Ott.

    @nurhridoy1

    The link you have shared used astra theme not hello theme. Check valid theme activated and added code in current active theme header.php. You can also used below plugin to add code in header. Also clear cache on the site if still not found code.

    https://wordpress.org/plugins/header-footer-code-manager/

    I hope this will help you

    Thread Starter nurhridoy1

    (@nurhridoy1)

    Michael Ott (@mikeyott) I have pasted it perfectly before </head> tag. When I change the WordPress Settings>reading>your homepage displays > from a static page to latest posts then code was detected by MailChimp successfully but when I change from latest posts to the static page then It’s not working.

    Thread Starter nurhridoy1

    (@nurhridoy1)

    weboccults (@weboccults) exactly I changed the theme a few minutes ago. I have a valid theme activated though it’s free and I have pasted the code into the current theme header.php Now tell me Is this plugin would be helpful or not?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.