Skip to content

Commit

Permalink
Fix analytics env setting (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspergrom authored Jun 19, 2023
1 parent feb6b9d commit 6fc8f51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
let segmentKey =
'%VUE_APP_SEGMENT_KEY%'

if (!segmentKey) {
if (!segmentKey || segmentKey.startsWith('%VUE_APP_SEGMENT_KEY')) {
segmentKey = 'CROWD_VUE_APP_SEGMENT_KEY'
}
if(segmentKey && !segmentKey.startsWith('%VUE_APP_SEGMENT_KEY')) {
if(segmentKey && !segmentKey.includes('VUE_APP_SEGMENT_KEY')) {
!(function() {
var analytics = (window.analytics =
window.analytics || [])
Expand Down Expand Up @@ -140,11 +140,11 @@

let pendoKey = '%VUE_APP_PENDO_KEY%'

if (!pendoKey) {
if (!pendoKey || pendoKey.startsWith('%VUE_APP_PENDO_KEY')) {
pendoKey = 'CROWD_VUE_APP_PENDO_KEY'
}

if(pendoKey && !pendoKey.startsWith('%VUE_APP_PENDO_KEY')){
if(pendoKey && !pendoKey.includes('VUE_APP_PENDO_KEY')){
;(function (apiKey) {
;(function (p, e, n, d, o) {
var v, w, x, y, z
Expand Down

0 comments on commit 6fc8f51

Please sign in to comment.