Skip to content

Commit

Permalink
Remove designation datalayer field (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
canac authored Mar 22, 2024
1 parent 7b21a2a commit d94809a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/app/analytics/analytics.factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,7 @@ const analyticsFactory = /* @ngInject */ function ($window, $timeout, envService
donation_frequency: frequency,
payment_type: paymentType,
purchase_number: purchaseData.rawData['purchase-number'],
campaign_code: cartItem.config.CAMPAIGN_CODE !== '' ? cartItem.config.CAMPAIGN_CODE : undefined,
designation: 'designation'
campaign_code: cartItem.config.CAMPAIGN_CODE !== '' ? cartItem.config.CAMPAIGN_CODE : undefined
}
})
// Send the transaction event if the dataLayer is defined
Expand Down
1 change: 0 additions & 1 deletion src/app/analytics/analytics.factory.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,6 @@ describe('analytics factory', () => {
payment_type: 'credit card',
purchase_number: '23032',
campaign_code: undefined,
designation: 'designation',
item_brand: 'STAFF',
processingFee: undefined,
testing_transaction: 'false',
Expand Down

0 comments on commit d94809a

Please sign in to comment.