tracking selected country in GA

This commit is contained in:
frankknoll
2023-03-28 23:14:22 +02:00
parent 84efc5f77a
commit f98ed0aa8a
3 changed files with 208 additions and 73 deletions

View File

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