Page MenuHomePhabricator

utm weirdness - different values in contribution tracking, on the donation message, and in the logs
Closed, ResolvedPublic

Description

examples:
ct id = 240769987.1
contribution id 134483551
contribution id 134733746

data for 240769987.1 is really interesting:
In contribution tracking utms are empty

on donate message: "utm_campaign":"WMF_FR_C2526_en6C_m_1201","utm_medium":"sitenotice","utm_source":"..cc"

in logs:
wmf_campaign=WMF_FR_C2526_en6C_m_1201
wmf_source=B2526_120118_en6C_m_p2_sm_txt_cnt.no-LP.cc
wmf_key=otherAmt_0%7EclickedNag_1%7EchangedAmt_1%7Eptf_1%7Evw_320%7Evh_572%7Etime_113

The transaction also went through the pending transaction resolver

Event Timeline

Change #1225015 had a related patch set uploaded (by Damilare Adedoyin; author: Damilare Adedoyin):

[wikimedia/fundraising/SmashPig@master] Add script to update Contribution Tracking row for contributions with missing UTM parameters in tracking table using UTM parameters that are available in the logs.

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

Thanks for reporting this @Cstone. Looking at the logs and searchkit, I've been able to discover over 3K contributions since October last year without the UTM parameters,here's the associated SearchKit. Though most of these transactions were Braintree Venmo, there were about 300+ from CC. Though I'm yet to find a way to reproduce the bug, however I did notice the Venmo transactions were logging URLs with no query parameters and no record in the pending DB.

I've pushed a patch to ensure Braintree Venmo transactions have records in the pending DB and another patch to backfill the data on the contribution tracking DB using data retrieved from the logs where available.

Damilare raised the priority of this task from Medium to High.Jan 12 2026, 8:50 PM
Damilare lowered the priority of this task from High to Medium.Jan 12 2026, 9:35 PM

Change #1225015 merged by jenkins-bot:

[wikimedia/fundraising/SmashPig@master] Add script to update Contribution Tracking row for contributions with missing UTM parameters in tracking table using UTM parameters that are available in the logs.

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

XenoRyet set Final Story Points to 2.