Skip to content

Commit

Permalink
remove gaCustom tracking from csv-to-json #230
Browse files Browse the repository at this point in the history
  • Loading branch information
mef committed Apr 27, 2023
1 parent 6541554 commit a150813
Showing 1 changed file with 0 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,21 +275,10 @@ var views = {
}
else {
controller.showFilePreview(res)

gaCustom.toGa('event', {
category: 'csv-to-json'
, action: 'CSV row count'
, value: res.data.length
})
}
}

Papa.parse(currentParseOpts.data, currentParseOpts)

gaCustom.toGa('event', {
category: 'csv-to-json'
, action: 'preview conversion'
})
}
, fullParse: function() {
// parse the full file and display the results
Expand Down Expand Up @@ -348,11 +337,6 @@ var views = {

Papa.parse(currentParseOpts.data, currentParseOpts)

gaCustom.toGa('event', {
category: 'csv-to-json'
, action: 'convert CSV'
})

}
, showFilePreview: function(data) {
// initial display of the preview of a parsed file to convert
Expand Down Expand Up @@ -411,11 +395,6 @@ var views = {
$filesList.find('[data-filename="' + fileName + '"]').replaceWith(content)
//~controller.showCsvSelectorPane()
$resultsPane.slideUp().empty()

gaCustom.toGa('event', {
category: 'csv-to-json'
, action: 'delete converted file'
})
}
, undoDeleteFile: function(fileName) {

Expand All @@ -430,11 +409,6 @@ var views = {

var content = views.convertedFile(fileName)
$filesList.find('[data-filename="' + fileName + '"]').closest('.columns').replaceWith(content)

gaCustom.toGa('event', {
category: 'csv-to-json'
, action: 'undo delete converted file'
})
}
}

Expand Down Expand Up @@ -481,12 +455,6 @@ $(document).ready(function(){
$fileSelector.on('change', function(e) {

controller.previewParse({data: e.target.files[0], fileName:e.target.files[0].name})

gaCustom.toGa('event', {
category: 'csv-to-json'
, action: 'input CSV'
, label: 'file select'
})
})

$fileSelector.on('click', function() {
Expand Down Expand Up @@ -519,12 +487,6 @@ $(document).ready(function(){
$dropPlaceHolder.hide()

controller.previewParse({data: e.originalEvent.dataTransfer.files[0], fileName: e.originalEvent.dataTransfer.files[0].name})

gaCustom.toGa('event', {
category: 'csv-to-json'
, action: 'input CSV'
, label: 'file drop'
})
return false
})

Expand Down Expand Up @@ -556,11 +518,6 @@ $(document).ready(function(){
oldTextAreaValue = e.target.value

controller.previewParse({data: e.target.value, fileName: 'pastedText'})

gaCustom.toGa('event', {
category: 'csv-to-json'
, action: 'paste CSV'
})
}
}

Expand Down Expand Up @@ -593,12 +550,6 @@ $(document).ready(function(){
//~console.log('URL', fileName)

controller.previewParse({data: e.target.value, download:true, fileName: fileName})

gaCustom.toGa('event', {
category: 'csv-to-json'
, action: 'input CSV'
, label: 'URL'
})
}
}

Expand Down

0 comments on commit a150813

Please sign in to comment.