How can I know how many visitors are using light or dark theme via custom events? #3105
Unanswered
legendofmi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m currently using the Cloud Umami and I set up a custom page view event in which I added the theme the users are using (dark or light). Something like this:
umami.track(props => ({...props, data: { theme: theme()}})) }
Where
theme()
is a JS function that returns"dark-default"
,"light-default"
,"dark"
or"light"
.It seems if I click on the property “theme” I get a graph for the events. Is there a way to get the graph per visitor instead of per event?
Edit: it seems umami.identify instead of track did the trick
Beta Was this translation helpful? Give feedback.
All reactions