Added setup type var

This commit is contained in:
Eldad Fux
2020-02-04 10:06:13 +02:00
parent 92060d0b89
commit 820fc656cc
7 changed files with 16 additions and 16 deletions
+3 -2
View File
@@ -3,7 +3,7 @@
window.ls.container.get("view").add({
selector: "data-analytics-pageview",
controller: function(window, router) {
controller: function(window, router, env) {
if (!ga) {
console.error("Google Analytics ga object is not available");
}
@@ -13,7 +13,8 @@
ga("set", "page", window.location.pathname);
ga("set", "dimension1", project);
//ga('set', 'dimension2', '');
ga('set', 'dimension2', env.VERSION);
ga('set', 'dimension3', env.SETUP);
ga("send", "pageview");
}