From 39513afb95144e91598eb50cbfab59ea6ab420e6 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Mon, 29 May 2023 23:08:17 +0200 Subject: [PATCH] removing GoogleAnalytics --- docs/GoogleAnalytics.js | 35 -------------------------- docs/VaccineDistributionByZipcode.html | 9 ------- docs/batchCodeTable.js | 13 ---------- src/CountriesMerger.py | 2 +- 4 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 docs/GoogleAnalytics.js diff --git a/docs/GoogleAnalytics.js b/docs/GoogleAnalytics.js deleted file mode 100644 index a7ea83c1d53..00000000000 --- a/docs/GoogleAnalytics.js +++ /dev/null @@ -1,35 +0,0 @@ -class GoogleAnalytics { - - static click_batchcode(batchcode) { - gtag( - 'event', - 'click_batchcode', - { - 'batchcode': batchcode - }); - } - - static view_search_results(search_term) { - gtag( - 'event', - 'view_search_results', - { - 'search_term': search_term - }); - } - - static countrySelected(country) { - gtag( - "event", - "select_item", - { - item_list_id: "countrySelect", - items: - [ - { - item_id: country, - } - ] - }); - } -} diff --git a/docs/VaccineDistributionByZipcode.html b/docs/VaccineDistributionByZipcode.html index 3b52490f119..34731ccea4d 100644 --- a/docs/VaccineDistributionByZipcode.html +++ b/docs/VaccineDistributionByZipcode.html @@ -5,15 +5,6 @@ Pfizer Vaccine Distribution by ZIP Code - - - diff --git a/docs/batchCodeTable.js b/docs/batchCodeTable.js index aafbc5eaae6..4d42ae5fc28 100644 --- a/docs/batchCodeTable.js +++ b/docs/batchCodeTable.js @@ -18,7 +18,6 @@ class BatchCodeTableInitializer { this.#countrySelect.addEventListener('change', event => this.#displayCountry()); this.#displayCountry(); this.#initializeHistogramView(); - this.#trackSearchWithGoogleAnalytics(); } #getCountry() { @@ -117,7 +116,6 @@ class BatchCodeTableInitializer { this.#columnSearch.columnContentUpdated(); this.#selectInput(); }); - GoogleAnalytics.countrySelected(this.#getCountry()); } #_addEmptyControlColumn(json) { @@ -156,18 +154,7 @@ class BatchCodeTableInitializer { tr.addClass('shown'); const batchcode = row.data()[thisClassInstance.#getColumnIndex('Batch')]; new HistogramView(uiContainer).displayHistogramView(thisClassInstance.#getCountry(), batchcode); - GoogleAnalytics.click_batchcode(batchcode); } }); } - - #trackSearchWithGoogleAnalytics() { - const thisClassInstance = this; - $(`#${this.#batchCodeTableElement[0].id}`) - .on( - 'search.dt', - function () { - GoogleAnalytics.view_search_results(thisClassInstance.#batchCodeTable.search().toUpperCase()); - }); - } } diff --git a/src/CountriesMerger.py b/src/CountriesMerger.py index ea3dd79bdc8..548980ce9b8 100644 --- a/src/CountriesMerger.py +++ b/src/CountriesMerger.py @@ -10,6 +10,6 @@ class CountriesMerger: mergedSeries = (pd .merge(dst, src, how = 'left', left_index = True, right_index = True) - .apply(merge, axis='columns')) + .apply(merge, axis = 'columns')) mergedSeries.name = dst.name return mergedSeries