Home Squarespace Add Google Analytics 4 to Squarespace
Squarespace

Add Google Analytics 4 to Squarespace

Google Analytics is a web analytics service offered by Google that tracks and reports website traffic. It helps website owners understand how visitors interact with their site, including how many visitors arrive at the site, what pages they view, and how long they stay on the site. It is a free tool used by businesses and individuals to track and analyze their website traffic data to make informed decisions about their online marketing efforts.

In order to add it to your Squarespace site, you first need to generate the code in your Analytics account.

To get the Google Analytics tracking code, once you have logged into the Analytics account, follow these steps:

  1. Click on the Admin button in the bottom left corner.
  2. Select the desired account and property in which you want to add the tracking code. If you don’t have a property created yet, you will have to create it now.
  3. Click on Tracking Info > Tracking Code.
  4. Here you will find the entire code snippet. For Squarspace you will need only the ID, which looks something like this if you are using GA3 – ‘UA-XXXXX-Y’. If you are using GA4, it will look like this: G-XXXXXXXXX

Adding Google Analytics ID to Squarespace

Navigate to your Squarespace admin and click SETTINGS -> ADVANCED -> EXTERNAL API KEYS

Enter your Google Analytics tracking ID (a code that looks like this: G-XXXXXXXXX) and SAVE.

Written by
Igor Bujas

I am a UI designer and front-end developer professional working mostly in the Shopify ecosystem. I've been working in the industry for so long that I was fixing bugs for IE5, and animating in Flash while it was still a Macromedia product. While not differentiating between the UI and the code, I am always looking to get outdoors for some alpine climbs or scuba dives. I also work as a Krav Maga instructor in Zagreb, Croatia.

Leave a comment

Related Articles

How to upload files to Squarespace?
Squarespace

How To Upload Files To Squarespace

A simple functionality one would expect to be easily found on any...

4 proven ways to speed up your Shopify store.

    We respect your privacy. Unsubscribe at anytime.