diff --git a/public/views/index.template.html b/public/views/index.template.html
index ebb1aa537d9..e1699f74673 100644
--- a/public/views/index.template.html
+++ b/public/views/index.template.html
@@ -22,7 +22,14 @@
-
-
-
-
+
+
-
Loading Grafana
+
Loading Grafana
@@ -171,35 +242,36 @@
settings: [[.Settings]],
navTree: [[.NavTree]]
};
- // load css async
- var myCSS = document.createElement( "link" );
- myCSS.rel = "stylesheet";
- myCSS.href = "public/build/grafana.[[ .Theme ]].css?v[[ .BuildVersion ]]+[[ .BuildCommit ]]";
- // insert it at the end of the head in a legacy-friendly manner
- document.head.insertBefore( myCSS, document.head.childNodes[ document.head.childNodes.length - 1 ].nextSibling );
-
+ console.log([[ .Theme]]);
+ // load css async
+ var myCSS = document.createElement("link");
+ myCSS.rel = "stylesheet";
+ myCSS.href = "public/build/grafana.[[ .Theme ]].css?v[[ .BuildVersion ]]+[[ .BuildCommit ]]";
- [[if .GoogleTagManagerId]]
+ // insert it at the end of the head in a legacy-friendly manner
+ document.head.insertBefore(myCSS, document.head.childNodes[document.head.childNodes.length - 1].nextSibling);
+ [[if .GoogleTagManagerId]]
-
-
-
-
+ dataLayer = [{
+ 'IsSignedIn': '[[.User.IsSignedIn]]',
+ 'Email': '[[.User.Email]]',
+ 'Name': '[[.User.Name]]',
+ 'UserId': '[[.User.Id]]',
+ 'OrgId': '[[.User.OrgId]]',
+ 'OrgName': '[[.User.OrgName]]',
+ }];
+
+
+
+
+
[[end]]
+