removing GoogleAnalytics

This commit is contained in:
frankknoll
2023-05-29 23:08:17 +02:00
parent 44d72d887b
commit 39513afb95
4 changed files with 1 additions and 58 deletions

View File

@@ -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());
});
}
}