Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

include local.html file meant to define local analytics properties (#1612)

Aaron van Meerten6d1a0188647e
diff --git a/index.html b/index.html
index 3884188b34..e13da33a13 100644
--- a/index.html
+++ b/index.html
@@ -4,6 +4,7 @@
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--#include virtual="base.html" -->
+ <!--#include virtual="local.html" -->
<script>
window.indexLoadedTime = window.performance.now();
console.log("(TIME) index.html loaded:\t", indexLoadedTime);
diff --git a/local.html b/local.html
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/modules/analytics/analytics.js b/modules/analytics/analytics.js
index e83681163b..d42440a64a 100644
--- a/modules/analytics/analytics.js
+++ b/modules/analytics/analytics.js
@@ -122,6 +122,17 @@ class Analytics {
if (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.setAnalyticsHandlers(handlers);