Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Adding google analytics



  • Answers 7
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

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

@rachelt nope. The code you have is JavaScript, not CSS.

Here’s a good walkthrough: https://www.clickminded.com/google-tag-manager-squarespace/

Posted Images

7 answers to this question

Recommended Posts

  • 0
  • 0

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. 

Link to post
  • 0

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 -->
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
<!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) -->
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.
Link to post
  • 0

Create an account or sign in to comment

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

  • Create New...