diff --git a/src/integrations/Appcues/browser.js b/src/integrations/Appcues/browser.js index c1c8b1e63..6aad15527 100644 --- a/src/integrations/Appcues/browser.js +++ b/src/integrations/Appcues/browser.js @@ -24,9 +24,12 @@ class Appcues { init() { logger.debug('===in init Appcues==='); - const url = isDefinedAndNotNullAndNotEmpty(this.proxyUrl) - ? this.proxyUrl - : `https://fast.appcues.com/${this.accountId}.js`; + let url = `https://fast.appcues.com/${this.accountId}.js`; + if (isDefinedAndNotNullAndNotEmpty(this.proxyUrl) && typeof this.proxyUrl === 'string') { + url = this.proxyUrl.includes(`${this.accountId}.js`) + ? this.proxyUrl + : `${this.proxyUrl}/${this.accountId}.js`; + } ScriptLoader('appcues-id', url); }