feat: isolate donation views (#40383)

* feat: capitalize all donation cats

* feat: isolate donation page views from donation actions
This commit is contained in:
Ahmad Abdolsaheb
2020-12-07 16:35:28 +03:00
committed by GitHub
parent 2959196b35
commit 26bb9a4e21
4 changed files with 7 additions and 7 deletions

View File

@ -117,7 +117,7 @@ const ShowCertification = props => {
executeGA({
type: 'event',
data: {
category: 'Donation',
category: 'Donation View',
action: 'Displayed Certificate Donation',
nonInteraction: true
}
@ -138,7 +138,7 @@ const ShowCertification = props => {
props.executeGA({
type: 'event',
data: {
category: 'donation',
category: 'Donation',
action: `certificate ${action}`,
label: duration,
value: amount

View File

@ -68,7 +68,7 @@ function DonateModal({
executeGA({
type: 'event',
data: {
category: 'donation',
category: 'Donation',
action: `Modal ${action}`,
label: duration,
value: amount
@ -83,7 +83,7 @@ function DonateModal({
executeGA({
type: 'event',
data: {
category: 'Donation',
category: 'Donation View',
action: `Displayed ${
isBlockDonation ? 'block' : 'progress'
} donation modal`,

View File

@ -49,7 +49,7 @@ export class DonatePage extends Component {
this.props.executeGA({
type: 'event',
data: {
category: 'Donation',
category: 'Donation View',
action: `Displayed donate page`,
nonInteraction: true
}
@ -60,7 +60,7 @@ export class DonatePage extends Component {
this.props.executeGA({
type: 'event',
data: {
category: 'donation',
category: 'Donation',
action: `donate page ${action}`,
label: duration,
value: amount

View File

@ -9,7 +9,7 @@ describe('ga-saga', () => {
const mockEventPayload = {
type: 'event',
data: {
category: 'donation',
category: 'Donation',
action: 'year end gift paypal button click'
}
};