Page MenuHomePhabricator

Standardize utm_source from app donations without a banner and clean up old data
Open, MediumPublic

Description

We are creating utm_source for in app donations but for others starting in the app and going into a web browser the utm_source is set to the app version. Example:

utm_medium=WikipedaApp
utm_campaign=iOS
utm_source=7.4.3.2822

Our code is exploding utm_source on . so this is putting 7 or 2 into the banner data.

  • Update the apps to send appmenu in utm_source and not the app version
  • Do send the app version in app_version
  • Add catch in DonationData to set utm_source to appmenu.app.$paymentmethod
  • Clean up current data

Event Timeline

Change 973237 had a related patch set uploaded (by Cstone; author: Cstone):

[mediawiki/extensions/DonationInterface@master] Add catch to change utm_source from non banner app donations

https://gerrit.wikimedia.org/r/973237

AKanji-WMF added a subscriber: AKanji-WMF.

Moving into current sprint to review @Cstone patch; then pending Apps team

More notes for apps:

This ticket is for modifying the values we send when the user goes to donate via our web view through the app Settings path (i.e. not campaign modal, not native Apple Pay). Currently through Settings, iOS sends users to this in-app web view url:

https://donate.wikimedia.org/?utm_medium=WikipediaApp&utm_campaign=iOS&utm_source={app-version}&uselang={langcode}

We want to modify it to send them to:

https://donate.wikimedia.org/?utm_medium=WikipediaApp&utm_campaign={iOS/Android}&utm_source=appmenu&uselang={langcode}&app_version={app_version}

Given we aren't going to manage to make this change, test etc. prior to big english, to avoid any complications in data this work should not be released in production until after big english

Change 973237 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Add catch to change utm_source from non banner app donations

https://gerrit.wikimedia.org/r/973237

Change 974708 had a related patch set uploaded (by Cstone; author: Cstone):

[mediawiki/extensions/DonationInterface@master] Add catch for in app donation with no banner

https://gerrit.wikimedia.org/r/974708

Change 974708 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Add catch for in app donation with no banner

https://gerrit.wikimedia.org/r/974708

Change 975082 had a related patch set uploaded (by Cstone; author: Cstone):

[mediawiki/extensions/DonationInterface@master] Change from app to inapp to distinguish donation source

https://gerrit.wikimedia.org/r/975082

Change 975082 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Change from app to inapp to distinguish donation source

https://gerrit.wikimedia.org/r/975082

Talked to @JMando today, the utm_source from in-app donations will change to appmenu.inapp.apple while the ones from the app but done through the browser will stay as appmenu.app.{payment_method}