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

View File

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

View File

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

View File

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