Guest Posted June 19, 2020 Posted June 19, 2020 Site URL: https://naonow.squarespace.com/config/pages Hi! I am trying to add google analytics to my site. I have all the correct codes (See below) but am not quite sure where to add them. Do i Just click each page and add them here under page settings --> advanced? Does it matter which order I put the codes in? Thanks!! @tuanphan Site: naonow.com
christyprice Posted June 20, 2020 Posted June 20, 2020 It’s easier than that! Just use Settings > Advanced > External API Keys https://support.squarespace.com/hc/en-us/articles/205815608-Using-Google-Analytics-with-Squarespace RyanDejaegher 1 christyprice.com 🇺🇸 Austin, TX US 🐾 ✅ Get my Starter Template for Web Designers 🎬 Watch 7 Ways to Save Time as a Squarespace Designer from Circle Day 2024 🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
Guest Posted June 21, 2020 Posted June 21, 2020 Thanks @christyprice!! Can I do the same for adding analytics for this? Do I have to enter in the code or is there a shortcut? Thanks!
christyprice Posted June 21, 2020 Posted June 21, 2020 I’m not familiar with that one... looks like you’ll need to have the business plan and add it here: In the Home Menu, click Settings, click Advanced, and then click Code Injection. Then paste in the header box. christyprice.com 🇺🇸 Austin, TX US 🐾 ✅ Get my Starter Template for Web Designers 🎬 Watch 7 Ways to Save Time as a Squarespace Designer from Circle Day 2024 🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
Guest Posted June 21, 2020 Posted June 21, 2020 Thanks @christyprice! Can I just add it under home --> design--> custom CSS?
christyprice Posted June 21, 2020 Posted June 21, 2020 @rachelt nope. The code you have is JavaScript, not CSS. christyprice.com 🇺🇸 Austin, TX US 🐾 ✅ Get my Starter Template for Web Designers 🎬 Watch 7 Ways to Save Time as a Squarespace Designer from Circle Day 2024 🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
Guest Posted June 24, 2020 Posted June 24, 2020 Hi @christyprice-- do you know how to add GTM code? I need to add both of these and just tried and it totally messed up my website! Where do I add each one? # Google Tag Manager <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-MMPB3HZ');</script> <!-- End Google Tag Manager --> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MMPB3HZ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> 1. Place the <script> code snippet in the <head> of your web page's HTML output, preferably as close to the opening <head> tag as possible, but below any dataLayer declarations. 2. Place the <noscript> code snippet immediately after the <body> tag in your HTML output.
christyprice Posted June 24, 2020 Posted June 24, 2020 Here’s a good walkthrough: https://www.clickminded.com/google-tag-manager-squarespace/ christyprice.com 🇺🇸 Austin, TX US 🐾 ✅ Get my Starter Template for Web Designers 🎬 Watch 7 Ways to Save Time as a Squarespace Designer from Circle Day 2024 🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
keepsakereflections Posted January 27, 2022 Posted January 27, 2022 Hi, I am also wondering about installing Google Tag Manager. I followed the tutuorial in the link above, but it does not work properly installing the noscript code in the footer. I keep getting this error message: GTM no-script code not found: either missing or not in <body> Is there a way to add the custom code per Google Instructions "immediately after the opening <body> tag" ?
tuanphan Posted January 28, 2022 Posted January 28, 2022 On 1/27/2022 at 12:51 PM, keepsakereflections said: Hi, I am also wondering about installing Google Tag Manager. I followed the tutuorial in the link above, but it does not work properly installing the noscript code in the footer. I keep getting this error message: GTM no-script code not found: either missing or not in <body> Is there a way to add the custom code per Google Instructions "immediately after the opening <body> tag" ? Add it to Settings > Advanced > Code Injection > Footer Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment