Jump to content

edwinorange

Member
  • Posts

    3
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by edwinorange

  1. jQuery code injection will do the job. Just inject the following code on your form page, replacing the category and action with your own labels. <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('input.button').click(function() { window.setInterval(foo, 100); }); }); function foo(){ if($(".form-submission-text").is(':visible')){ _gaq.push(['_trackEvent', 'YourForm', 'Submission']); } } </script>
  2. I'm want to use Google Analytics to track conversions from my Squarespace 6 site - those conversions being a completed form on the site - but cannot find a way to include the code in the submission button or the form submitted page. Does anyone know of a workaround to allow me to track completed forms?
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.