Update validation of `utm_campaign` in RTAMO onboarding
Categories
(Firefox :: Messaging System, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox90 | --- | verified |
People
(Reporter: jorgev, Assigned: mixedpuppy)
References
Details
Attachments
(2 files, 1 obsolete file)
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta-
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta-
|
Details | Review |
Currently, RTAMO URLs have these params:
The last param (utm_content
) identifies this as a RTAMO URL and the add-on that will be shown in the first run UX instead of the regular onboarding flow. The other 3 params (utm_source
, utm_medium
, utm_campaign
) have fixed values and are also validated on the client side. If they don't match, the RTAMO UX isn't shown.
In order to experiment with the Download Firefox feature on AMO and have better attribution tracking, we want to make the utm_campaign
value variable, so validating it wouldn't be as straightforward. Given that this param validation appears to just be a sanity check, perhaps it would be sufficient to stop checking utm_campaign
and just rely on the other two values.
Comment 1•3 years ago
•
|
||
Seems like from bug 1530816, there's a "rta:" prefix that has special meaning that we could also use?
source == "addons.mozilla.org" &&
content?.startsWith("rta%3A")
The current code checks for source and campaign:
https://searchfox.org/mozilla-central/rev/72951aa826642f048da4c6b71b8b3e36a9606dcd/browser/components/newtab/aboutwelcome/lib/AboutWelcomeDefaults.jsm#403-408
Reporter | ||
Comment 2•3 years ago
|
||
Filed an equivalent issue for validation on the mozilla.org side: https://github.com/mozilla/bedrock/issues/10173
Assignee | ||
Comment 3•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Reporter | ||
Comment 5•3 years ago
|
||
To speak to the urgency of this patch and the uplift request, there are some experiments we're running on AMO very soon (possibly starting next week) that will impact RTAMO if this isn't fixed. I'm okay with RTAMO not working temporarily for these experiments, but it's of course ideal if we minimize the impact. I asked Shane for an uplift request with the assumption that this would be a low risk patch.
Comment 6•3 years ago
•
|
||
A separate beta patch probably won't be necessary as the nearby attribution change in 90 is likely uplifted: bug 1703327 comment 8
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/16a995d1204f remove strict utm_campaign validation for rtamo r=Mardak
Comment 8•3 years ago
|
||
Backed out changeset 16a995d1204f (bug 1707038) for causing bc failures in browser_aboutwelcome_attribution.js.
https://hg.mozilla.org/integration/autoland/rev/7b86ed091946bfb1271f0fc4b97f9e011a58dd1f
Push with failures:
https://treeherder.mozilla.org/jobs?repo=autoland&revision=16a995d1204fa37fecf0a7ed702a62654ff4cdd0&selectedTaskRun=c15Xm_AvRgi1DD4wyKRIBg.0
Failure log:
https://treeherder.mozilla.org/logviewer?job_id=338071495&repo=autoland&lineNumber=7159
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/54553dd780a6 remove strict utm_campaign validation for rtamo r=Mardak
Assignee | ||
Comment 10•3 years ago
|
||
Comment 11•3 years ago
|
||
bugherder |
Comment 12•3 years ago
|
||
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/14ead18ad78b update manual rtamo test with recommended addon and correct content format r=Mardak
Comment 13•3 years ago
|
||
bugherder |
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 14•3 years ago
•
|
||
Comment on attachment 9218975 [details]
Bug 1707038 remove strict utm_campaign validation for rtamo
Beta/Release Uplift Approval Request
- User impact if declined: Some new Firefox users from AMO don't continue to add-on installation (i.e., the RTAMO new user flow) when part of an experiment with custom "campaign" values potentially starting this week (see comment 5)
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: 1. enable
browser.newtabpage.activity-stream.asrouter.devtoolsEnabled
- open about:newtab -> click wrench devtools -> select "Targeting"
- set/force attributions (at bottom of page, details below)
- open about:welcome and see RTAMO (privacy badger as in comment 0)
Test attributions:
source: addons.mozilla.org
campaign: test-campaign
content: rta:amlkMS1Nbm54Y3hpc0JQblNYUUBqZXRwYWNr
(Before campaign was required to be "non-fx-button")
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Removing some unnecessarily strict checks and updating internal devtools to assist dev/QA
- String changes made/needed: none
Updated•3 years ago
|
Assignee | ||
Comment 15•3 years ago
|
||
This uplift could be approved, but it should wait to land for a few days. An alternative is being tested in the interim.
Comment 16•3 years ago
|
||
I have verified that "Privacy Badger" RTAMO is correctly displayed on the "about:welcome" page by following the steps provided in comment 14 using Firefox Nightly 90.0a1 (Build ID: 20210509213623) on Windows 10 x64, Windows 8.1 x64, and Windows 7 x64.
Comment 17•3 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #15)
This uplift could be approved, but it should wait to land for a few days. An alternative is being tested in the interim.
Shane, do you have an update on this? thanks
Comment 18•3 years ago
|
||
I had a discussion with Jorge about this yesterday and it looks like the data we have for the current experiment is sufficient and therefore we do not need to uplift this.
Comment 19•3 years ago
|
||
Comment on attachment 9218975 [details]
Bug 1707038 remove strict utm_campaign validation for rtamo
Thanks
Updated•3 years ago
|
Updated•2 years ago
|
Assignee | ||
Updated•3 months ago
|
Description
•