Skip to content

Commit

Permalink
Merge pull request #819 from argenisf/fix-integration-event-sending-w…
Browse files Browse the repository at this point in the history
…hen-opted-out

Fix integration event when opted out
  • Loading branch information
zihejia committed Sep 13, 2023
2 parents ac53cd5 + 0145477 commit a74f1d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public class MixpanelAPI {
track("$app_open", null);
}

if (!mPersistentIdentity.isFirstIntegration(mToken)) {
if (!mPersistentIdentity.isFirstIntegration(mToken) && !optOutTrackingDefault && !hasOptedOutTracking()) {
try {
sendHttpEvent("Integration", "85053bf24bba75239b16a601d9387e17", token, null, false);
mPersistentIdentity.setIsIntegrated(mToken);
Expand Down

0 comments on commit a74f1d7

Please sign in to comment.