mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
opt out based on analyticsOptOut localSetting
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
28d929f901
commit
3e7ef112f0
@ -280,8 +280,8 @@ async function loadApp() {
|
||||
} else if (validBrowser) {
|
||||
UpdateChecker.start();
|
||||
|
||||
const doNotTrack = navigator.doNotTrack === 'yes' || navigator.doNotTrack === '1' || navigator.doNotTrack === 1;
|
||||
if (!doNotTrack && configJson.piwik && configJson.piwik.url && configJson.piwik.siteId) {
|
||||
const analyticsEnabled = !UserSettingsStore.getLocalSetting('analyticsOptOut', false);
|
||||
if (analyticsEnabled && configJson.piwik && configJson.piwik.url && configJson.piwik.siteId) {
|
||||
(function() {
|
||||
const g = document.createElement('script');
|
||||
const s = document.getElementsByTagName('script')[0];
|
||||
|
Loading…
Reference in New Issue
Block a user