@boomerang-io/webapp-spa-server 1.2.3 → 1.3.0-beta.1
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 +8 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -193,8 +193,8 @@ function getBeeheardSurveyScripts() {
|
|
|
193
193
|
|
|
194
194
|
// Include Google Analytics based on env var
|
|
195
195
|
function getGAScripts() {
|
|
196
|
-
const
|
|
197
|
-
return Boolean(
|
|
196
|
+
const ibmInstrumentationId = process.env.GA_SITE_ID;
|
|
197
|
+
return Boolean(ibmInstrumentationId)
|
|
198
198
|
? `<script type="text/javascript">
|
|
199
199
|
window.idaPageIsSPA = true;
|
|
200
200
|
window._ibmAnalytics = {
|
|
@@ -210,16 +210,17 @@ function getGAScripts() {
|
|
|
210
210
|
digitalData = {
|
|
211
211
|
page: {
|
|
212
212
|
pageInfo: {
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
pageID: "ibm_consulting_advantage_test",
|
|
214
|
+
productTitle: "IBM Consulting Advantage",
|
|
215
|
+
analytics: {
|
|
216
|
+
category: 'Offering Interface'
|
|
215
217
|
}
|
|
216
|
-
},
|
|
217
|
-
category: {
|
|
218
|
-
primaryCategory: 'PC100'
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
220
|
};
|
|
222
221
|
</script>
|
|
222
|
+
<script type="text/javascript"> window._analytics = { "segment_key" : "BdBQtVrGbCxBumrCuR2MYAARD8CA3VQp", "coremetrics" : false, "optimizely" : false, "googleAddServices": false, "fullStory" : false}; </script>
|
|
223
|
+
<script src="https://console.test.cloud.ibm.com/analytics/build/bluemix-analytics.min.js"></script>
|
|
223
224
|
<script async src="https://1.www.s81c.com/common/stats/ibm-common.js" type="text/javascript" crossorigin></script>`
|
|
224
225
|
: "";
|
|
225
226
|
}
|
package/package.json
CHANGED