From ce1d30371f5cecb53af8cfb98f4961f6cbe22059 Mon Sep 17 00:00:00 2001 From: Andrew Magliozzi Date: Fri, 4 Oct 2013 12:02:56 -0400 Subject: [PATCH] fixed google analytics upload and form submit tracking using event tracking method _trackEvent(args) --- karmaworld/templates/partial/filepicker.html | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/karmaworld/templates/partial/filepicker.html b/karmaworld/templates/partial/filepicker.html index 5233cbc..04a4afa 100644 --- a/karmaworld/templates/partial/filepicker.html +++ b/karmaworld/templates/partial/filepicker.html @@ -29,20 +29,9 @@

Your files are being processed and should be viewable within a few minutes.

If you'd like to share again, please click here.

- @@ -107,12 +96,15 @@ $(_form.children[0].children[3].children[1]).val(upFile.mimetype); document.getElementById('forms_container').appendChild(_form); + + _trackEvent('upload', 'filepicker file drop'); $('.remove').on('click', function(e){ e.stopPropagation(); console.log($(this).parent().parent()); $(this).parent().parent().remove(); }); + }; var fileup = document.getElementById('filepicker-file-upload'); -- 2.25.1