mirror of https://github.com/vector-im/riot-web
Update analytics host tracking for new structure
parent
231c26c8a4
commit
f0c6139803
|
@ -204,8 +204,11 @@ class Analytics {
|
||||||
|
|
||||||
this._setVisitVariable('Chosen Language', getCurrentLanguage());
|
this._setVisitVariable('Chosen Language', getCurrentLanguage());
|
||||||
|
|
||||||
if (window.location.hostname === 'riot.im') {
|
const hostname = window.location.hostname;
|
||||||
|
if (hostname === 'riot.im') {
|
||||||
this._setVisitVariable('Instance', window.location.pathname);
|
this._setVisitVariable('Instance', window.location.pathname);
|
||||||
|
} else if (hostname.endsWith('.element.io')) {
|
||||||
|
this._setVisitVariable('Instance', hostname);
|
||||||
}
|
}
|
||||||
|
|
||||||
let installedPWA = "unknown";
|
let installedPWA = "unknown";
|
||||||
|
|
Loading…
Reference in New Issue