diff --git a/docs/GoogleAnalytics.js b/docs/GoogleAnalytics.js index f1ae6368add..a7ea83c1d53 100644 --- a/docs/GoogleAnalytics.js +++ b/docs/GoogleAnalytics.js @@ -17,4 +17,19 @@ 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.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) { diff --git a/src/VAERSFileDownloader.py b/src/VAERSFileDownloader.py index d49527ed617..24356f0d06a 100644 --- a/src/VAERSFileDownloader.py +++ b/src/VAERSFileDownloader.py @@ -26,7 +26,7 @@ def downloadVAERSFileAndUnzip(file, workingDirectory): dstDir = workingDirectory + '/VAERS/') def downloadVAERSFile(file, downloadDir): - driver = getWebDriver(downloadDir, isHeadless = False) + driver = getWebDriver(downloadDir, isHeadless = True) downloadedFile = downloadFile( absoluteFile = downloadDir + "/" + file, driver = driver,