From bfcfed6ffc25a455f502a9f6d10ecfe78fd25237 Mon Sep 17 00:00:00 2001 From: Andrew Magliozzi Date: Mon, 7 Oct 2013 08:31:10 -0400 Subject: [PATCH] move upload form submit tracker to post request 'success' block --- karmaworld/templates/partial/filepicker.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karmaworld/templates/partial/filepicker.html b/karmaworld/templates/partial/filepicker.html index c34e226..89a7997 100644 --- a/karmaworld/templates/partial/filepicker.html +++ b/karmaworld/templates/partial/filepicker.html @@ -105,7 +105,6 @@ $('#save-btn').on('click', function(e){ e.stopPropagation(); - _gat._getTracker()._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; @@ -135,6 +134,7 @@ $('#success').show(); document.getElementById('save-btn').style.display = 'none'; $('#forms_container .inline-form').remove(); + _gat._getTracker()._trackEvent('upload', 'upload form submitted'); setTimeout(function(){ location.reload(true); }, 15000); -- 2.25.1