A super simple way to track Squarespace forms In Google Analytics

Form Submissions in Google Analytics


So, you’re new (or old) to Google Analytics and you ask yourself, “How Do I Simply Track Forms In Google Analytics?” Well, You have come to the right place.

If your aim is to do digital better, then it is important to have a comprehensive view of your data - this includes contact forms. In this article, professional placement student Louis Devine will teach you a very simple method to track Squarespace forms directly in Google Analytics, in under 5 minutes.

How to track forms in Google Analytics

This method of form tracking gives you the ability to track forms individually, enabling you to set custom goals and values to unique forms.

This method sends an event to Google Analytics whenever a form is submitted.

Once you have created your form in Squarespace, all you need to is to add a code snippet to your “Advanced” Settings in the form editor.

Screen Shot 2019-05-01 at 4.52.05 pm.png

The following is the code snippet you want to script -copy into the “Post-Submit Message” section. by going to the ‘advanced’ settings of the form you are wanting to track.

ga('create', 'UA-XXXXXXXXX-X', 'auto');
ga('send', {
  hitType: 'event',
  eventCategory: 'Form',
  eventAction: 'Submission',
  eventLabel: {{‘Contact Form’}},
  eventValue: {{5}}

To customise the script for your purpose you should:

  1. Replace “UA-xxxxxxxx-x” with your Google Analytics ID.

  2. Change the Event Label to something relevant to your form.

This code will then execute every time the form is successfully submitted and, the event will be automatically sent to your Google Analytics account, (provided that you input your Google Analytics ID correctly).

You can confirm that form submissions are being recorded in Google Analytics by:

  1. Submitting the form.

  2. On your Google Analytics account, go to ‘Real-Time’ - ‘Events’ and you should see the form submission appear in real time.


Creating a form Goal In Google Analytics

Now that your form is successfully sending to Google Analytics, you can create a goal completion for the form.

  1. Go to the ‘Admin’ cog, - ‘Goals’ - ‘New Goal’.

  2. Select ‘Custom’

  3. Change the goal name to something relevant that you will understand.

  4. The ‘Type’ of goal should be an ‘Event’.

  5. The ‘Category’, ‘Action’, ‘Label’ and ‘Value’ should be equal to what you specified in the form script at the beginning. Something like this:


After you have saved the goal, head back to your form and submit it once more. Then, go back to Google Analytics ‘Real-Time’ - ‘Conversions’ and you should see that the form has been recorded as a ‘Conversion’.


Please note: It can take Google Analytics an hour or more for the goal to appear in the normal ‘Conversions’ - ‘Goals’ reports.

The final outcome should look like this: Two ‘Contact Form Submission (Goal 3 Completions)’ which I valued at $5 each, totalling a Goal Value of $10.


Most Important Point

If you are doing data properly, it is important to track what is converting on your website and this includes contact forms, which should all be unique. There are several other ways to track form submissions on Squarespace and it really depends on your exact needs, however, this is the quickest and easiest way - leaving little room for error on your part.

If you are having any trouble configuring this, feel free to reach out to us and we can take a look for you.