licnyguy Posted January 19, 2014 Share Posted January 19, 2014 Can someone please confirm whether webbroi's answer above will work with Google's Universal Analytics? I have UA running on my Squarespace site and just want to make sure I'll be able to track form submissions by inserting the following code into my form's Post-submit HTML box? Thanks! Link to comment
licnyguy Posted January 21, 2014 Share Posted January 21, 2014 Has anyone figured out a solution to this yet? For the record, I added the code listed above to the Post-Submit HTML box in the form settings on one of my site's pages...and also updated the Category / Action / Label information, and it did not successfully send any Event information to Google Analytics. Figuring out how to track form submissions as trackable Events in Google Analytics is a very important part of my site's reporting so I would greatly appreciate any help in figuring this one out! Cheers! Link to comment
licnyguy Posted January 21, 2014 Share Posted January 21, 2014 Has anyone figured out a solution to this yet? For the record, I added the code listed above to the Post-Submit HTML box in the form settings on one of my site's pages...and also updated the Category / Action / Label information, and it did not successfully send any Event information to Google Analytics. Figuring out how to track form submissions as trackable Events in Google Analytics is a very important part of my site's reporting so I would greatly appreciate any help in figuring this one out! Cheers! Link to comment
webbroi Posted January 21, 2014 Share Posted January 21, 2014 (edited) The easiest method I have found, also has some benefits by using a /Thank-you page. Create a new /Thank-You page in Squarespace Edit your Form on your /Contact page. Under advanced add this simple script to the Post Submit HTML window.location.replace("/thank-you"); (note: add the script beg and end tags) <script> window.location.replace("/thank-you"); </script> Create a Google Analytics Goal for the /Thank-you pageThis method also lets you track the /thank-you page in page views, to help troubleshoot issues. We also added a redirect to the homepage. You can do all sorts of thing with your /thank-you page pushing your users to other content etc. Update: I have confirmed this still works, with standard "stock" squarespace GA implementation. Not tested with Universal via code injection. Edited March 31, 2016 by webbroi Squarewebsites.org Plugins. Webbroi.com Growth Marketing Link to comment
licnyguy Posted January 24, 2014 Share Posted January 24, 2014 Thanks for that work-around. Creating a separate Thank You page for my forms seems to have worked great in terms of tracking them as goals in Google Analytics. And I like the user experience better this way as well. So thanks again - much appreciated! Link to comment
webbroi Posted January 24, 2014 Share Posted January 24, 2014 Yea..its old school. But it works. And easier to add other conversion tracking code for Twitter, and other marketing platforms easily. Squarewebsites.org Plugins. Webbroi.com Growth Marketing Link to comment
bogdan Posted February 18, 2014 Share Posted February 18, 2014 I tested this out and it doesn't work on Squarespace 5 - the page won't redirect after successful submit. I think the Post Submit HTML section in the form doesn't support javascript. any ideas? Link to comment
Guest Posted March 18, 2014 Share Posted March 18, 2014 I'd like to know if the original code foleyatwork (apr 17 '13) shared is still up-to-date for tracking form submissions on Google Analytics? Link to comment
tewang32 Posted April 29, 2014 Share Posted April 29, 2014 I added this code into the footer with code injection and it doesn't seem to be picking up any of the submissions as an event on Analytics. Does this code still work or is it different now or does it work differently with Universal Analytics? Link to comment
MichelleKF Posted August 13, 2014 Share Posted August 13, 2014 (edited) webbroi- I created a new thank-you page and also added the script you provided to my contact page in the advanced section. However, now my contact page just automatically redirects to the thank-you page instead of redirecting after someone submits an inquiry. What am I doing wrong?? Edited August 13, 2014 by MichelleKF Link to comment
avsmithy Posted August 13, 2014 Share Posted August 13, 2014 Are you sure you added the code to the 'Post Submit HTML' and not the 'Post Header Code Injection'? Link to comment
ferol Posted January 7, 2015 Share Posted January 7, 2015 The jquery method above works great for form blocks, but I'm trying to get it to work with a new SS7 cover page... and it's not working. Page is here: http://freebooksy.com/new-cover-page-1 I think it's not referencing the button correctly... any ideas? Link to comment
ferol Posted January 7, 2015 Share Posted January 7, 2015 The jquery method above works great for form blocks, but I'm trying to get it to work with a new SS7 cover page... and it's not working. Page is here: http://freebooksy.com/new-cover-page-1 I think it's not referencing the button correctly... any ideas? Link to comment
ContrastDeco Posted October 6, 2015 Share Posted October 6, 2015 I'm experiencing problems pasting the Adwords-code in a Squarespace 7 cover page.The cover page works fine with a button allowing to fill out a form. If I paste the Adwords code into the post-submit HTML-box, this invalidates the button (I can still see it, but I can't click on it anymore). Link to comment
ContrastDeco Posted October 6, 2015 Share Posted October 6, 2015 Okay, I just realized that my last message wasn't very clear.I have a lightbox form installed on a Squarespace cover page. Form submission would be considered conversion in Adwords.When I paste the Adwords Code in the post-HTML-box the form isn't accessible anymore (the click-through button is still visible, but I can't click on it anymore).www.contrastdeco.fr/decorateur-offre Thank you! Link to comment
webbroi Posted November 5, 2015 Share Posted November 5, 2015 Guys, I'm going to test this implementation again now. Squarespace support might as well be a bot that says "Oh sorry your in developer mode, we can't support that" Squarewebsites.org Plugins. Webbroi.com Growth Marketing Link to comment
webbroi Posted November 5, 2015 Share Posted November 5, 2015 I just tested this. It still works great. Squarewebsites.org Plugins. Webbroi.com Growth Marketing Link to comment
Guest Posted February 4, 2016 Share Posted February 4, 2016 (edited) I couldn't get either of the code snippets offered here to work. But they would only work with GA Classic. I was able to get conversion tracking set up successfully with Google Tag Manager, GA Universal, and minimal code injections. I described the method in reply to another post:https://answers.squarespace.com/questions/60229/how-can-i-track-form-submissions-with-google-tag-managergoogle-analytics-in-v7.html#answer-121964 ( @foleyatwork ) Edited February 4, 2016 by Guest Initial Revision Link to comment
Katatat Posted February 17, 2016 Share Posted February 17, 2016 How do we find the data in Analytics once this is complete? Do you have to set up a Goal? I'm confused. Link to comment
carolyntcurl Posted February 17, 2016 Share Posted February 17, 2016 Are you ready for a change? Looking for a new job? No annual fees! This is very simple anyone can do it! You don't need any experience! Go Here: --->>> www.pay-buzz.com Link to comment
webbroi Posted March 31, 2016 Share Posted March 31, 2016 Hey Squarespace. Is this really the best solution? I continue to get emails of people asking abou this. My solution below works, and got 10 upvotes vs the 3 on this "best answer" Its really a bit confusing to me why this is not prioritized as a feature. Tracking goals should be at the top of the feature list for any webmaster or company with a website big or small. Squarewebsites.org Plugins. Webbroi.com Growth Marketing Link to comment
webbroi Posted March 31, 2016 Share Posted March 31, 2016 This continues to be the best solution for me. Both tracking organic form submissions or adding additional tracking scrips for adwords or other paid advertising. I have no clue why the answer above has been marked as best answer. It does not work for me. Squarewebsites.org Plugins. Webbroi.com Growth Marketing Link to comment
webbroi Posted March 31, 2016 Share Posted March 31, 2016 Not sure why the script is not saving. Squarewebsites.org Plugins. Webbroi.com Growth Marketing Link to comment
issyb_a Posted July 28, 2016 Share Posted July 28, 2016 For anyone else struggling with getting the new Thank You page to come up-Make sure that you aren't logged in as administrator - it won't work if you are logged in. Link to comment
Guest Posted August 27, 2016 Share Posted August 27, 2016 The easiest most accurate way I have found to track form submissions in Analytics is to create a redirect to a thank you page or enquiry confirmation type page, using a script in the Post Submit HTML. All you do is have to then set up a new goal in Analytics and you can start tracking your form submissions. I have recently put together a whole video walkthrough on the topic that you may find useful:http://www.atomicmarketing.co/blog/conversion-tracking-squarespace-google-analytics Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment