Open flaneuse opened 3 years ago
Vision: expose on outbreak.info/situation-reports the top 5 mutation searches over the past 2 or 4 weeks, which will be some combination of lineage reports, lineage + added mutations reports, and mutation(s) reports.
Steps:
page_title
. This has been done in the dynamic-titles branch BUT since the Google Analytics fires before vue-meta changes the page title, the GA page view is the PREVIOUS route, not the current one.
pango
and muts
query params and ignore the rest.path
variable has all the info we need, it also contains lots of other things (e.g. location data) that we want to track but don't need for this analysis. The parsing of paths like outbreak.info/situation-reports?pango=B.1.1.7 (to extract B.1.1.7) could happen on the front-end, but that's not ideal.title
parameter from the SituationReport in vue-router; I took a brief look but couldn't figure out how to dynamically attach it to the meta
object or something similar of the route.pango
and muts
params from the route
to
object. Problem with that: would work for Situation Reports, but we don't want to break how the rest of the site passes titles to GA.localhost
filter from the GA settings to test this out.
e.g. trending lineages / variants / mutations