From f98ed0aa8aae6a8518d3e7a359f8e270f01bca78 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Tue, 28 Mar 2023 23:14:22 +0200 Subject: [PATCH] tracking selected country in GA --- docs/GoogleAnalytics.js | 13 ++ docs/batchCodeTable.html | 267 ++++++++++++++++++++++++++++----------- docs/batchCodeTable.js | 1 + 3 files changed, 208 insertions(+), 73 deletions(-) diff --git a/docs/GoogleAnalytics.js b/docs/GoogleAnalytics.js index f1ae6368add..866e6d68ba7 100644 --- a/docs/GoogleAnalytics.js +++ b/docs/GoogleAnalytics.js @@ -17,4 +17,17 @@ class GoogleAnalytics { 'search_term': search_term }); } + + static countrySelected(country) { + gtag("event", + "select_item", + { + item_list_id: "countrySelect", + items: [ + { + item_id: country, + } + ] + }); + } } diff --git a/docs/batchCodeTable.html b/docs/batchCodeTable.html index c372bcfaec8..6c9bcf9312a 100644 --- a/docs/batchCodeTable.html +++ b/docs/batchCodeTable.html @@ -1,36 +1,43 @@ + - - -Batch Codes of Coronavirus 2019 Vaccines - - - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + -Fork me on GitHub -

Batch Codes of Coronavirus 2019 Vaccines

-

- -

-

-

-Check out your batch code (Last updated: March 24, 2023) + Fork me on GitHub +

Batch Codes of Coronavirus 2019 Vaccines

+

+

- - - - - - - - - - - - - - - -
BatchAdverse Reaction ReportsDeathsDisabilitiesLife Threatening IllnessesCompanyCountriesSevere reportsLethality
-

Data Source: -Vaccine Adverse Event Reporting System +

+

+ Check out your batch code (Last updated: March 24, 2023) +

+ + + + + + + + + + + + + + + +
BatchAdverse Reaction ReportsDeathsDisabilitiesLife Threatening IllnessesCompanyCountriesSevere reportsLethality
+

Data Source: + Vaccine Adverse Event Reporting System (VAERS) -

- - + + \ No newline at end of file diff --git a/docs/batchCodeTable.js b/docs/batchCodeTable.js index 23b3882b395..aafbc5eaae6 100644 --- a/docs/batchCodeTable.js +++ b/docs/batchCodeTable.js @@ -117,6 +117,7 @@ class BatchCodeTableInitializer { this.#columnSearch.columnContentUpdated(); this.#selectInput(); }); + GoogleAnalytics.countrySelected(this.#getCountry()); } #_addEmptyControlColumn(json) {