feat: isolate donation views (#40383)
* feat: capitalize all donation cats * feat: isolate donation page views from donation actions
This commit is contained in:
@ -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
|
||||||
|
@ -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`,
|
||||||
|
@ -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
|
||||||
|
@ -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'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user