Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make pixel events more resilient #2856

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

anxolin
Copy link
Contributor

@anxolin anxolin commented Jul 12, 2023

Summary

Pixels and any other analytics in the app should not break the user flow in case of an error.

This PR makes sure that if we have an error reporting Pixel (facebook, twitter, etc), we just log it and it doesn't propagate.

Additionally, this PR enables the pixel reporting for PRODUCTION and ENS (well, in the PR is enabled for testing purposes, but will be disabled before merging as stated in the code comment)

This PR tries to solve the issue reported by Elena:
image

To Test

@elena-zh can you check if this is fixing the issue?

@vercel
Copy link

vercel bot commented Jul 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
swap-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2023 1:46pm

@anxolin anxolin changed the base branch from develop to release/1.41.0 July 12, 2023 10:43
@anxolin anxolin marked this pull request as ready for review July 12, 2023 10:48
@anxolin anxolin requested a review from nenadV91 July 12, 2023 10:50
Copy link

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @anxolin , the app is not crashed in this PR!

@elena-zh elena-zh self-requested a review July 12, 2023 12:05
Copy link

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, not foxed. I realized that the issue is reproducible on Firefox.
So the app is crashes there
image

@elena-zh
Copy link

Hey @anxolin , it appears that the issue is also reproducible on Prod, so it can't be related to the upcoming release.

@anxolin anxolin requested a review from elena-zh July 12, 2023 13:47
@anxolin anxolin merged commit 2731b74 into release/1.41.0 Jul 12, 2023
6 of 7 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2023
@anxolin
Copy link
Contributor Author

anxolin commented Jul 12, 2023

I still address comments, I just want to consolidate the PRs. Pls @elena-zh let me know if it worked for you

@alfetopito alfetopito deleted the make-pixels-to-not-break-the-app branch July 12, 2023 14:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants