Add Adjust opt-in redirect for Firefox Android attribution#17159
Merged
slightlyoffbeat merged 1 commit intomainfrom May 7, 2026
Merged
Add Adjust opt-in redirect for Firefox Android attribution#17159slightlyoffbeat merged 1 commit intomainfrom
slightlyoffbeat merged 1 commit intomainfrom
Conversation
Add an opt-in path through Adjust on the existing /r/mobile/ redirect so Firefox Android installs from mozilla.org can be attributed in the "mozorg-mobile-redirect" channel in Adjust. Triggered only when the request includes ?via=adjust, the product is firefox, and the User-Agent is Android; all other cases fall through to today's Play Store / App Store logic untouched. The Adjust link URL is configurable via the ADJUST_FIREFOX_ANDROID_LINK env var so dev/stage can point at a separate link to keep test installs out of production attribution data.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #17159 +/- ##
==========================================
+ Coverage 81.99% 82.04% +0.04%
==========================================
Files 179 179
Lines 9530 9538 +8
==========================================
+ Hits 7814 7825 +11
+ Misses 1716 1713 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
stevejalim
reviewed
May 6, 2026
stevejalim
approved these changes
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an opt-in path through Adjust on the existing /r/mobile/ redirect so Firefox Android installs from mozilla.org can be attributed in the "mozorg-mobile-redirect" channel in Adjust. Triggered only when the request includes ?via=adjust, the product is firefox, and the User-Agent is Android; all other cases fall through to today's Play Store / App Store logic untouched.
The Adjust link URL is configurable via the ADJUST_FIREFOX_ANDROID_LINK env var so dev/stage can point at a separate link to keep test installs out of production attribution data.
If this changeset needs to go into the FXC codebase, please add the
WMO and FXClabel.One-line summary
Significant changes and points to review
Issue / Bugzilla link
Testing
Local manual (curl) — verify bedrock returns the right destination
With
npm startrunning onlocalhost:8080, run each curl and check theLocation:header:Android + via=adjust + firefox → expects Adjust URL with
&campaign=appendedExpect:
https://app.adjust.com/20kona3j?fallback=…&redirect_macos=…&campaign=test-001Android + no via (regression check) → expects Play Store with UTM referrer
Expect:
https://play.google.com/store/apps/details?id=org.mozilla.firefox&referrer=…utm_campaign%3Dtest-002iOS + via=adjust (flag should be ignored) → expects App Store
Expect:
https://apps.apple.com/app/apple-store/id989804926?pt=373246&ct=test-003…Android + via=adjust + focus (flag should be ignored, scope is firefox-only) → expects Play Store Focus
Expect:
https://play.google.com/store/apps/details?id=org.mozilla.focus&referrer=…Bogus via value → expects Play Store fallback (default behavior)
Expect: Play Store URL, not Adjust
End-to-end attribution (real Android device)
http://<dev-or-stage-host>/firefox/browsers/mobile/app/?via=adjust&product=firefox&campaign=e2e-pr-test-001channel =
mozorg-mobile-redirect, campaign =e2e-pr-test-001