Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixel event should be enhanced with Recurring Donations #5

Open
5 tasks
mathetos opened this issue Oct 9, 2020 · 0 comments
Open
5 tasks

Pixel event should be enhanced with Recurring Donations #5

mathetos opened this issue Oct 9, 2020 · 0 comments

Comments

@mathetos
Copy link
Member

mathetos commented Oct 9, 2020

User Story

As a Recurring Donations user, I want to see the pixel reflect the entire amount that a donor will give over the course of their recurring lifecycle so that my FB data is more accurate.

Details

Currently, the pixel only sends the initial amount that a donor donates. In the case of recurring, this doesn't adequate reflect how much they will give over the course of a given year or the course of the recurring lifecycle.

If recurring is present, the pixel should do the following:

  1. If there is an length of time set for the form that the donation should recur for (like 6 months), the total amount of the donation should be multiplied by that length of time.

  2. If the length of time is set to "ongoing" the donation amount should be set to 12 months, with a filter that can be changed if users prefer.

Acceptance Criteria

  • The correct math is applied to the total amount when a length of time is set for the recurring period
  • When the length of time is set to "ongoing" the total amount correctly reflects the initial donation multiplied by 12
  • A filter is in place for the ongoing multiplier, and works as intended when leveraged in custom code
  • When the form supports both one-time and recurring, both the one-time donation pixel amount is correct, and the recurring donation pixel amount is correct
  • If a form has disabled recurring, the recurring functionality does not negatively impact the one-time donation in any way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant