Added setup type var

This commit is contained in:
Eldad Fux committed 2020-02-04 10:06:13 +02:00
1 parent 92060d0b89
commit 820fc656cc
7 files changed
+16 -16

No files matched your search

+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");
}