mirror of
https://github.com/mue/mue.git
synced 2026-07-13 12:07:45 +02:00
feat: add opt-in umami analytics (WIP)
This commit is contained in:
@@ -22,6 +22,8 @@ export default class Dropdown extends React.PureComponent {
|
||||
return;
|
||||
}
|
||||
|
||||
window.analytics.postEvent('settingUpdate', `Changed setting ${this.props.name} from ${this.state.value} to ${value}`);
|
||||
|
||||
this.setState({
|
||||
value: value,
|
||||
title: e.target[e.target.selectedIndex].text
|
||||
|
||||
Reference in New Issue
Block a user