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?