Page MenuHomePhabricator

Some Recent Email Send have No Clicks Or Donations
Closed, ResolvedPublicBUG REPORT

Description

Hey there,

We are seeing a few recent emails with donation asks not having any donations or donate wiki clicks come through. They were soft asks, but figure we should make sure everything is in order on the links. Queries:

SELECT
    t.utm_medium,
    LEFT(t.utm_source,10) AS mailing_identifier,
    c.contact_id,
    c.id,
    c.total_amount
FROM civicrm.civicrm_contribution AS c
LEFT JOIN civicrm.civicrm_value_1_communication_4 AS comm ON c.contact_id = comm.entity_id
LEFT JOIN drupal.contribution_tracking AS t ON c.id = t.contribution_id
WHERE c.receive_date >= '2023-01-01'
        AND c.contribution_status_id = 1 /* only pull completed transations */
        AND c.financial_type_id <> 14 /* remove refunds */
        AND c.contact_id <> 42572457 /* remove WMF fund-to-fund internal transfers */
        AND LEFT(t.utm_source,10) in ('sp73859018','sp73859020','sp73863609','sp73863614');
SELECT
donatewiki.utm_source,
SUM(donatewiki.count) AS donatewiki_clicks
FROM pgehres.donatewiki_counts AS donatewiki
where  donatewiki.utm_source in ('sp73859018','sp73859020','sp73863609','sp73863614')
GROUP BY utm_source;

Event Timeline

Was the utm_source with the sp73859018 for example, added to any of the links @RLopez-WMF ?

I see 36 donations with utm_campaign=C2324_ThankYou-Recurring but looks like they are missing the sp info in the utm source that @JMando 's queries are usually looking for

For example CID=48511417 with contribution id=101925996 has a utm_source of fr-redir.default~default~default~default~control.rcc

Got it. I'll update the base template to avoid this issue in any future send

Is there a way to bring that information into Superset? @JMando @Cstone
Or could you share final numbers for sp73859020 and sp73859018, if possible?

@MSuijkerbuijk_WMF @RLopez-WMF do each of these individual emails ('sp73859018','sp73859020','sp73863609','sp73863614') have a different utm_campaign? If so, I can fake the mailing_identifier on the donations and bring them into email stats.

But if they all share the same utm_campaign, then I do not think we can differentiate which donation came from which send. Only give totals from the overall campaign. Unless sp info is stored somewhere else to for donations and I am missing it @Cstone?

@JMando we get those values on the donations from the utm_source. If they do have different utm_campaigns I could backfill the utm_source data from that too on our end but otherwise we don't have any more mailing info

These are the parameters

utm_campaign=C2324_ThankYou-Recurring
utm_medium=email
utm_source=sp%%MAILING_ID%%

And here the sp IDs

sp73859020
sp73859018

Thanks!

@MSuijkerbuijk_WMF so sp73859020 and sp73859018 had donation asks/links and they both shared the same utm_campaign name (C2324_ThankYou-Recurring)?

sp73863609 and sp73863614 did not have donation asks?

Hi @JMando

Only sp73859020 (lapsed recurring) had a donation ask in the PS, this is the data I'm not seeing.

These sp73863609 and sp73863614 were MGFE sends, and I don't think they had asks.

@MSuijkerbuijk_WMF was there a difference between sp73859020 and sp73859018?

@Cstone
Yes, sp73859020 had a PS added with a donation link. sp73859018 did not have donation links

If forwarded both templates to you and Joseph.

I updated the 61 contribution trackings from that utm_campaign with 40 donations.

Since donations can still come in on the link we'll have to check the data again and update any new ones if you are interested in stats past today.

XenoRyet set Final Story Points to 2.