Page MenuHomePhabricator

Update webview donate_url for different campaign id and replace paramters name from utm_ to wmf_
Closed, ResolvedPublic

Description

We have the donate_url for the WebView donation form when the user clicks on "Other payment" or if the country does not support native payment.

For the current implementation, the donation form web URL will be something like this:
https://donate.wikimedia.org/w/index.php?title=Special:LandingPage&country=US&uselang=en&wmf_medium=WikipediaApp&wmf_source=appmenu&wmf_campaign=Android&app_version=2.7.50555-r-2025-11-04

The wmf_source will always be appmenu.

For the iOS app, the URL will have a different wmf_source based on the campaign_id.

This ticket updates the donate_url to ensure we set up the wmf_source correctly based on the campaign ID.

Please note that in the Android app, we are using utm_source, and it will be transformed to wmf_source when the web page is opened.

<string name="donate_url">https://donate.wikimedia.org/?utm_medium=WikipediaApp&amp;utm_campaign=Android&amp;utm_source=[CAMPAIGN_ID]&amp;uselang=%1$s&amp;app_version=%2$s</string>
Requirements:
  1. Make sure wmf_source is sending the corresponding campaign_id, for example: wmf_source=enUS_appmenu_Android
  2. Replace the utm_ with wmf_ for the parameters in the donate_url and make sure to check any existing logic that connects with the utm_ parameters.

Event Timeline

cooltey renamed this task from Update webview donate_url for different campaign id to Update webview donate_url for different campaign id and replace utm_ with wmf_.Mon, Nov 10, 6:52 PM
cooltey renamed this task from Update webview donate_url for different campaign id and replace utm_ with wmf_ to Update webview donate_url for different campaign id and replace paramters name from utm_ to wmf_.
ABorbaWMF subscribed.

Working for me on 2.7.50557-r-2025-11-14, on OnePlus 8 on Android 13, and Pixel 6 on Android 16.