Skip to content

Commit

Permalink
revert: get countly app key from web env
Browse files Browse the repository at this point in the history
This reverts commit 956ad03.
  • Loading branch information
przemvs committed Oct 2, 2024
1 parent 956ad03 commit b93802f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 28 deletions.
26 changes: 12 additions & 14 deletions src/page/auth.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@
var Countly = Countly || {};
Countly.q = Countly.q || [];
if (window.wire.env.COUNTLY_API_KEY) {
Countly.app_key = window.wire.env.COUNTLY_API_KEY;
Countly.url = "https://countly.wire.com/";
Countly.offline_mode = true;
Countly.use_session_cookie = false;
Countly.storage = 'localstorage';
Countly.debug = false;
Countly.require_consent = true;
Countly.q.push(['track_sessions']);
Countly.q.push(['track_pageview']);
Countly.init();
}
Countly.app_key = "<%= COUNTLY_API_KEY %>";
Countly.url = "https://countly.wire.com/";
Countly.offline_mode = true;
Countly.use_session_cookie = false;
Countly.storage = 'localstorage';
Countly.debug = false;
Countly.require_consent = true;
Countly.q.push(['track_sessions']);
Countly.q.push(['track_pageview']);
Countly.init();
</script>
</head>

Expand Down
26 changes: 12 additions & 14 deletions src/page/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@
var Countly = Countly || {};
Countly.q = Countly.q || [];
if (window.wire.env.COUNTLY_API_KEY) {
Countly.app_key = window.wire.env.COUNTLY_API_KEY;
Countly.url = "https://countly.wire.com/";
Countly.offline_mode = true;
Countly.use_session_cookie = false;
Countly.storage = 'localstorage';
Countly.debug = false;
Countly.require_consent = true;
Countly.q.push(['track_sessions']);
Countly.q.push(['track_pageview']);
Countly.init();
}
Countly.app_key = "<%= COUNTLY_API_KEY %>";
Countly.url = "https://countly.wire.com/";
Countly.offline_mode = true;
Countly.use_session_cookie = false;
Countly.storage = 'localstorage';
Countly.debug = false;
Countly.require_consent = true;
Countly.q.push(['track_sessions']);
Countly.q.push(['track_pageview']);
Countly.init();
</script>
</head>

Expand Down

0 comments on commit b93802f

Please sign in to comment.