Skip to content

Commit

Permalink
Added Feature to send Appcues flow events to all destinations
Browse files Browse the repository at this point in the history
  • Loading branch information
desusai7 committed Dec 23, 2020
1 parent 8efcb7c commit 907f075
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
19 changes: 11 additions & 8 deletions integrations/Appcues/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Appcues {
this.accountId = config.accountId;
this.apiKey = config.apiKey;
this.name = "APPCUES";
//this.sendToAllDestinations = config.sendToAll;
}

init() {
Expand All @@ -23,14 +24,16 @@ class Appcues {

isReady() {
logger.debug("in appcues isReady");
window.Appcues.on("all", function(eventName, event) {
window.rudderanalytics.track(eventName, event, {
integrations: {
All: true,
APPCUES: false
}
});
});
// if (this.sendToAllDestinations) {
// window.Appcues.on("all", function(eventName, event) {
// window.rudderanalytics.track(eventName, event, {
// integrations: {
// All: true,
// APPCUES: false
// }
// });
// });
// }
return !!window.Appcues;
}

Expand Down
22 changes: 12 additions & 10 deletions tests/html/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -16549,7 +16549,7 @@ var rudderanalytics = (function (exports) {

this.accountId = config.accountId;
this.apiKey = config.apiKey;
this.name = "APPCUES";
this.name = "APPCUES"; //this.sendToAllDestinations = config.sendToAll;
}

_createClass(Appcues, [{
Expand All @@ -16567,15 +16567,17 @@ var rudderanalytics = (function (exports) {
}, {
key: "isReady",
value: function isReady() {
logger.debug("in appcues isReady");
window.Appcues.on("all", function (eventName, event) {
window.rudderanalytics.track(eventName, event, {
integrations: {
All: true,
APPCUES: false
}
});
});
logger.debug("in appcues isReady"); // if (this.sendToAllDestinations) {
// window.Appcues.on("all", function(eventName, event) {
// window.rudderanalytics.track(eventName, event, {
// integrations: {
// All: true,
// APPCUES: false
// }
// });
// });
// }

return !!window.Appcues;
}
}, {
Expand Down

0 comments on commit 907f075

Please sign in to comment.