Skip to content

Commit

Permalink
Implemented reset, handling Appcues default calls
Browse files Browse the repository at this point in the history
  • Loading branch information
desusai7 committed Dec 23, 2020
1 parent 8c45a1a commit 8efcb7c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions integrations/Appcues/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ 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
}
});
});
return !!window.Appcues;
}

Expand Down Expand Up @@ -56,6 +64,11 @@ class Appcues {
} = rudderElement.message;
window.Appcues.page(name, properties);
}

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

}

export default Appcues;
13 changes: 13 additions & 0 deletions tests/html/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -16568,6 +16568,14 @@ 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
}
});
});
return !!window.Appcues;
}
}, {
Expand Down Expand Up @@ -16599,6 +16607,11 @@ var rudderanalytics = (function (exports) {
category = _rudderElement$messag.category;
window.Appcues.page(name, properties);
}
}, {
key: "reset",
value: function reset() {
window.Appcues.reset();
}
}]);

return Appcues;
Expand Down

0 comments on commit 8efcb7c

Please sign in to comment.