include local.html file meant to define local analytics properties (#1612)
* include local.html file meant to define local analytics properties include all specified local analytics properties in analytics events * use new variable name jitsiDeploymentInfo to represent more general use as local deployment information collection
This commit is contained in:
parent
320e67baa1
commit
6d1a018864
|
@ -4,6 +4,7 @@
|
||||||
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
<meta http-equiv="content-type" content="text/html;charset=utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<!--#include virtual="base.html" -->
|
<!--#include virtual="base.html" -->
|
||||||
|
<!--#include virtual="local.html" -->
|
||||||
<script>
|
<script>
|
||||||
window.indexLoadedTime = window.performance.now();
|
window.indexLoadedTime = window.performance.now();
|
||||||
console.log("(TIME) index.html loaded:\t", indexLoadedTime);
|
console.log("(TIME) index.html loaded:\t", indexLoadedTime);
|
||||||
|
|
|
@ -122,6 +122,17 @@ class Analytics {
|
||||||
if (group) {
|
if (group) {
|
||||||
permanentProperties.group = group;
|
permanentProperties.group = group;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* optionally include local deployment information,
|
||||||
|
* window.jitsiDeploymentInfo defined outside of application
|
||||||
|
* to use, override contents in local.html
|
||||||
|
**/
|
||||||
|
if (window.jitsiDeploymentInfo) {
|
||||||
|
for (var key in window.jitsiDeploymentInfo) {
|
||||||
|
permanentProperties[key]
|
||||||
|
= window.jitsiDeploymentInfo[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
analytics.addPermanentProperties(permanentProperties);
|
analytics.addPermanentProperties(permanentProperties);
|
||||||
analytics.setAnalyticsHandlers(handlers);
|
analytics.setAnalyticsHandlers(handlers);
|
||||||
|
|
Loading…
Reference in New Issue