Question

Is there a way to track if the devices users are using to interact with a product has dark mode enabled?

  • 24 December 2020
  • 3 replies
  • 88 views

Main aim is to understand what % of users are using dark mode (especially to read emails). If we can retrieve this information and store it as a user property, that may be the ideal case for our usage. Even passing and storing it as a super property will help.


3 replies

Userlevel 3
Badge +3

Hello,

On what device are you looking to track that?

Userlevel 3
Badge +1

I don’t think there is anything by default in Mixpanel. Depending on the platforms you are working on, you can check with your developers if the information is available to the app.

Userlevel 4
Badge +3

If this is a JavaScript integration you can use ‘window.matchMedia’ to determine this and then set it as a user property.

https://ourcodeworld.com/articles/read/1114/how-to-detect-if-the-user-prefers-a-light-or-dark-color-schema-in-the-browser-with-javascript-and-css

Reply


Mixpanel