@boomerang-io/webapp-spa-server 1.3.0-beta.6 → 1.3.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -194,7 +194,7 @@ function getBeeheardSurveyScripts() {
|
|
|
194
194
|
|
|
195
195
|
// Include Google Analytics based on env var
|
|
196
196
|
function getBluemixSegmentScripts() {
|
|
197
|
-
const enableSegment = process.env.
|
|
197
|
+
const enableSegment = process.env.SEGMENT_ENABLED;
|
|
198
198
|
const segmentUrl = process.env.SEGMENT_SCRIPT_URL;
|
|
199
199
|
const segmentKey = process.env.SEGMENT_KEY;
|
|
200
200
|
|
|
@@ -223,7 +223,9 @@ function getBluemixSegmentScripts() {
|
|
|
223
223
|
function getGAScripts() {
|
|
224
224
|
const gaSiteId = process.env.GA_SITE_ID;
|
|
225
225
|
const gaUrl = process.env.GA_SCRIPT_URL;
|
|
226
|
-
|
|
226
|
+
const gaEnabled = process.env.GA_ENABLED;
|
|
227
|
+
|
|
228
|
+
return Boolean(gaEnabled)
|
|
227
229
|
? `<script type="text/javascript">
|
|
228
230
|
window.idaPageIsSPA = true;
|
|
229
231
|
window._ibmAnalytics = {
|
package/package.json
CHANGED