Skip to content

Commit

Permalink
fix: add trackAnonymousUser flag for track evnts
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Jan 20, 2025
1 parent 3aa225c commit 00558a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class Braze {
}
const eventName = rudderElement.message.event;
let { properties } = rudderElement.message;
if (eventName) {
if (eventName && this.trackAnonymousUser) {
if (eventName.toLowerCase() === 'order completed') {
handlePurchase(properties);
} else {
Expand Down

0 comments on commit 00558a2

Please sign in to comment.