removing GoogleAnalytics
This commit is contained in:
@@ -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,
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -5,15 +5,6 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
|
||||
<title>Pfizer Vaccine Distribution by ZIP Code</title>
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ERHYDH4P64"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-ERHYDH4P64');
|
||||
</script>
|
||||
<link href="https://cdn.datatables.net/1.13.1/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
|
||||
<link href="batchCodeTable.css" rel="stylesheet" type="text/css" />
|
||||
<link href="forkMeOnGitHub.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
@@ -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());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user