refactoring

This commit is contained in:
frankknoll
2023-03-21 11:20:03 +01:00
parent 53b35d9cd9
commit 2ecd05b720
3 changed files with 23 additions and 12 deletions

20
docs/GoogleAnalytics.js Normal file
View File

@@ -0,0 +1,20 @@
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
});
}
}