moving google analytics method to post request click handler
authorAndrew Magliozzi <andrew.magliozzi@gmail.com>
Fri, 4 Oct 2013 17:27:32 +0000 (13:27 -0400)
committerAndrew Magliozzi <andrew.magliozzi@gmail.com>
Fri, 4 Oct 2013 17:27:32 +0000 (13:27 -0400)
karmaworld/templates/partial/filepicker.html

index 04a4afa92a451f127f1851d842942c00f7d41ee9..e2449eecbe30e166065d7e1ad641746c8144232b 100644 (file)
           </ul>
           <p>Your files are being processed and should be viewable within a few minutes.</p>
           <p>If you'd like to share again, please <a href="">click here</a>.</p>
-          
-          <script>
-            _trackEvent('upload', 'upload form submitted');
-          </script>
       </div>
     </div>
 
 
       $('#save-btn').on('click', function(e){
         e.stopPropagation();
+        _trackEvent('upload', 'upload form submitted');
         $('#forms_container .inline-form').each(function(i,el){
             console.log("inline form " + i + "el: " + el);
             var name, tags, fpurl, course;