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

How to set up Google Analytics event tracking on a form submission button


IsabelFurtado

Question

Hi there!

I'd like to set up Google Analytics event tracking on a form submission button and other buttons that are not related to e-commerce.

What is the best way to do that with code injection?

I've been using Google Tag Manager with my previous site, and I know how to create G.A. event tracking there. 

Installing GTM was my first option, but Google's documentation says that the second part of the code should go immediately after the <body> opening tag, and the squarespace code injection only gives me the option to add it to the footer (I believe it means just before closing the </body> tag). So I'm not sure it's going to work fine.

Has anyone here done it?

Link to post
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0
17 hours ago, IsabelFurtado said:

Can anyone help with this? 🙄😊

 the squarespace code injection only gives me the option to add it to the footer (I believe it means just before closing the </body> tag)

Yes. Code in Footer will be in <body> and </body>

 

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post

Create an account or sign in to comment

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


×
×
  • Create New...