@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.
Files changed (2) hide show
  1. package/index.js +4 -2
  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.ENABLE_SEGMENT_INSTRUMENT;
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
- return Boolean(gaSiteId)
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@boomerang-io/webapp-spa-server",
3
3
  "description": "Webapp Server for React-based SPA w/ client-side routing",
4
- "version": "1.3.0-beta.6",
4
+ "version": "1.3.0-beta.7",
5
5
  "author": {
6
6
  "name": "Tim Bula",
7
7
  "email": "timrbula@gmail.com"