Jump to content

Syntax Error on line 1 - Mailchimp code

Recommended Posts

Site URL: https://holliemcmanus.com/

Good afternoon,

I wonder if anyone can help me.
I have entered the custom code from mailchimp, so the popup banner appears when people visit my website. It was working for ages, but I've just noticed it's started being a bit hit and miss and would only work when accessed from my phone. I also now have a 'Syntax on line 1' error.
I have recently added a hidden page on my site for links, so I have a linktree on my instagram profile, I wonder if this has efffected it somehow ? ( I get the pop up when I click on my linktree)
I am clueless when it come to code!

This is the code:

<script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/249a2220e1797ed766c0c23fd/5313b3f479977208f3e4691d7.js");</script>

Thank you for any help you can give 🙂

Hollie

Link to comment

Hi. Your code is script code, you need to add it to Settings > Advanced > Code Injection > Footer (or Header)

You see the errror because the Custom CSS box for CSS code only.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.