Jump to content

Help Google Analaytic code doesn't work

Recommended Posts

Hey guys,

This might be a basic problem but I want to enter the code under into the website custom page since it would allow me to collect data from the website into google analytic.

However, it keeps saying that the there's a  'SYNTAX ERROR ON LINE 1' and I don't know what is the problem since this a copy that Google Analytic gaved me, I don't think I can remove something.

Please help me :)

 

1872009946_Screenshot_2019-10-29Squarespace-CustomCSSEditor(1).png.8ebba54f0ebb138e9260c56ee7bcc20e.png

Link to comment
  • Replies 3
  • Views 377
  • Created
  • Last Reply

It looks like you are trying to insert the code into the custom css area. 

Instead you should insert it into Settings > Advanced > Code Injection > HEADER

I'm Colin Irwin aka silvabokis.  I've been a Squarespace designer & developer since 2013. 
I remember when it was all wild prairies round these here parts. 🐃🤠
Advice I give on here is free, though I may sometimes post an affiliate link or promote something I've written.
That reminds me.. ..you might want to check out my
Squarespace template finder or have a look at my other Squarespace tips
Speaking of tips, 💲I've got a tip jar that you're welcome to throw a few quid into if you think I've helped you. 
If you're looking for a Squarespace developer 
Book a chat or Drop me a line - first meeting is always free  

 

Link to comment

Hey Shedlyne, 

No problems - it was my pleasure. 

Col

I'm Colin Irwin aka silvabokis.  I've been a Squarespace designer & developer since 2013. 
I remember when it was all wild prairies round these here parts. 🐃🤠
Advice I give on here is free, though I may sometimes post an affiliate link or promote something I've written.
That reminds me.. ..you might want to check out my
Squarespace template finder or have a look at my other Squarespace tips
Speaking of tips, 💲I've got a tip jar that you're welcome to throw a few quid into if you think I've helped you. 
If you're looking for a Squarespace developer 
Book a chat or Drop me a line - first meeting is always free  

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.