Skip to content

feat: mp-3058-meta-tracking-new-events-pt-2 - #7133

Merged
infante-jaime merged 7 commits into
mainfrom
feature/mp-3058-meta-tracking-new-events-pt-2
Aug 10, 2026
Merged

feat: mp-3058-meta-tracking-new-events-pt-2#7133
infante-jaime merged 7 commits into
mainfrom
feature/mp-3058-meta-tracking-new-events-pt-2

Conversation

@infante-jaime

Copy link
Copy Markdown
Contributor

MP-3012 — Meta tracking: new lender events (pt. 2, ui)

Adds four Meta custom events, following the pattern from pt. 1
(idleLenderReEngaged / lapsedLenderReEngaged). The ticket's two giving-fund
events live in cms-page-server and are handled separately.

Event Fires on
donation Stand-alone donation — total > 0 with no loans and no Kiva Cards, so a tip on an order isn't counted. Covers checkout and instant donations.
kivaCardRedemption A Kiva Card code applied successfully in checkout.
emailSignUp Lender or guest opting in to marketing email. Gated on lenderNews === true && !globalUnsubscribed, since the same mutations serve opt-outs.
accountCreated Newly registered lender landing on the site.

All fire on confirmed success — after the mutation or transaction resolves, never at
form submit.

New: src/util/metaEvents.js (event names + trackMetaEvent, so delivery can
change in one place), src/util/registrationTracking.js.

Modified: kv-analytics-plugin.js, InstantDonationThanks.vue,
KivaCardRedemption.vue, useOptIn.js, CheckoutPage.vue, client-entry.js.

Comment thread src/util/registrationTracking.js Outdated
Comment thread src/util/metaEvents.js Outdated
@cristhianDt cristhianDt added the b2c Sends B2C team a message in Slack on PR creation label Aug 4, 2026
@cristhianDt
cristhianDt requested a review from a team August 4, 2026 17:32
Comment thread src/util/registrationTracking.js Outdated
Comment thread src/util/registrationTracking.js Outdated
Comment thread src/composables/useOptIn.js Outdated
@infante-jaime
infante-jaime marked this pull request as draft August 4, 2026 18:02
@infante-jaime
infante-jaime marked this pull request as ready for review August 10, 2026 04:10
@dyersituations

Copy link
Copy Markdown
Collaborator

@infante-jaime since some of the comments aren't auto-marked as "outdated", please go through the comments on this PR and respond + resolve.

Comment thread src/composables/useOptIn.js
Comment thread src/pages/Checkout/CheckoutPage.vue
Comment thread src/util/registrationTracking.js Outdated
Comment thread src/util/registrationTracking.js Outdated
@infante-jaime
infante-jaime merged commit d986caf into main Aug 10, 2026
6 checks passed

@cristhianDt cristhianDt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks for use my recommendations 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

b2c Sends B2C team a message in Slack on PR creation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants