chore: update events

This commit is contained in:
David Ralph
2021-06-21 23:03:47 +01:00
parent 7990286e9a
commit d7784e7414
24 changed files with 44 additions and 35 deletions

View File

@@ -19,7 +19,7 @@ export default class Favourite extends React.PureComponent {
this.setState({
favourited: <StarIcon2 onClick={this.favourite} className='topicons' />
});
window.analytics.postEvent('featureUpdate', 'Feature background favourite used');
window.analytics.postEvent('feature', 'Background favourite');
} else {
const url = document.getElementById('backgroundImage').style.backgroundImage.replace('url("', '').replace('")', '');
@@ -38,7 +38,7 @@ export default class Favourite extends React.PureComponent {
this.setState({
favourited: <StarIcon onClick={this.favourite} className='topicons' />
});
window.analytics.postEvent('featureUpdate', 'Feature background unfavourite used');
window.analytics.postEvent('feature', 'Background unfavourite');
}
}

View File

@@ -44,14 +44,14 @@ export default class Maximise extends React.PureComponent {
});
this.setAttribute(0, 100);
window.analytics.postEvent('featureUpdate', 'Feature background maximise used');
window.analytics.postEvent('feature', 'Background maximise');
} else {
this.setState({
hidden: false
});
this.setAttribute(localStorage.getItem('blur'), localStorage.getItem('brightness'), true);
window.analytics.postEvent('featureUpdate', 'Feature background unmaximise used');
window.analytics.postEvent('feature', 'Background unmaximise');
}
}

View File

@@ -18,7 +18,7 @@ const downloadImage = async (info) => {
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
window.analytics.postEvent('featureUpdate', 'Feature background download used');
window.analytics.postEvent('feature', 'Background download');
};
export default function PhotoInformation(props) {