Skip to content

Commit

Permalink
Made Minor Fixes and Added Appcues to integration_cname and client_se…
Browse files Browse the repository at this point in the history
…rver_name.js
  • Loading branch information
desusai7 committed Dec 24, 2020
1 parent 69f0152 commit 14f43be
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
19 changes: 12 additions & 7 deletions integrations/Appcues/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class Appcues {

isReady() {
logger.debug("in appcues isReady");
// if (this.sendToAllDestinations) {
// This block of code enables us to send Appcues Flow events to all the other destinations connected to the same source (we might use it in future)
// if (this.sendToAllDestinations && window.Appcues) {
// window.Appcues.on("all", function(eventName, event) {
// window.rudderanalytics.track(eventName, event, {
// integrations: {
Expand All @@ -46,6 +47,8 @@ class Appcues {
} = rudderElement.message;
if (userId) {
window.Appcues.identify(userId, traits);
} else {
logger.error("user id is empty");
}
}

Expand All @@ -56,21 +59,23 @@ class Appcues {
} = rudderElement.message;
if (eventName) {
window.Appcues.track(eventName, properties);
} else {
logger.error("event name is empty");
}
}

page(rudderElement) {
const {
properties,
name,
category
name
} = rudderElement.message;
window.Appcues.page(name, properties);
}

reset() {
window.Appcues.reset();
}

// To be uncommented after adding Reset feature to our SDK
// reset() {
// window.Appcues.reset();
// }

}

Expand Down
1 change: 1 addition & 0 deletions integrations/client_server_name.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const clientToServerNames = {
AM: "Amplitude",
PENDO: "Pendo",
LYTICS: "Lytics",
APPCUES: "Appcues",
};

export { clientToServerNames };
2 changes: 2 additions & 0 deletions integrations/integration_cname.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ const commonNames = {
PENDO: "PENDO",
Lytics: "Lytics",
LYTICS: "Lytics",
Appcues: "APPCUES",
APPCUES: "APPCUES",
};

export { commonNames };

0 comments on commit 14f43be

Please sign in to comment.