diff --git a/Sources/VGSCheckoutSDK/Core/Checkout/UseCases/BaseCardViewController/VGSBaseCardViewController.swift b/Sources/VGSCheckoutSDK/Core/Checkout/UseCases/BaseCardViewController/VGSBaseCardViewController.swift index 940d9f6c..6a0d2e7d 100644 --- a/Sources/VGSCheckoutSDK/Core/Checkout/UseCases/BaseCardViewController/VGSBaseCardViewController.swift +++ b/Sources/VGSCheckoutSDK/Core/Checkout/UseCases/BaseCardViewController/VGSBaseCardViewController.swift @@ -99,12 +99,12 @@ internal class VGSBaseCardViewController: VGSFormViewController { switch checkoutConfigurationType { case .custom(let configuration): self.addressDataSectionViewModel = VGSAddressDataSectionViewModel(vgsCollect: vgsCollect, configuration: configuration, validationBehavior: self.validationBehavior, uiTheme: uiTheme, formValidationHelper: formValidationHelper, autoFocusManager: autoFocusManager) - VGSCheckoutAnalyticsClient.shared.trackFormEvent(vgsCollect.formAnalyticsDetails, type: .formInit, extraData: ["config": "custom"]) + VGSCheckoutAnalyticsClient.shared.trackFormEvent(vgsCollect.formAnalyticsDetails, type: .formInit, extraData: ["config": "custom", "content": configuration.contentAnalytics()]) case .payoptAddCard(let configuration): self.addressDataSectionViewModel = VGSAddressDataSectionViewModel(vgsCollect: vgsCollect, configuration: configuration, validationBehavior: self.validationBehavior, uiTheme: uiTheme, formValidationHelper: formValidationHelper, autoFocusManager: autoFocusManager) case .payoptTransfers(let configuration): self.addressDataSectionViewModel = VGSAddressDataSectionViewModel(vgsCollect: vgsCollect, configuration: configuration, validationBehavior: self.validationBehavior, uiTheme: uiTheme, formValidationHelper: formValidationHelper, autoFocusManager: autoFocusManager) - VGSCheckoutAnalyticsClient.shared.trackFormEvent(vgsCollect.formAnalyticsDetails, type: .formInit, extraData: ["config": "payopt", "configType": "transfers"]) + VGSCheckoutAnalyticsClient.shared.trackFormEvent(vgsCollect.formAnalyticsDetails, type: .formInit, extraData: ["config": "payopt", "configType": "transfers", "content": configuration.contentAnalytics()]) } self.addCardSectionFormView = VGSSaveCardFormView(cardDetailsView: cardDataSectionViewModel.cardDetailsSectionView, billingAddressView: addressDataSectionViewModel.billingAddressFormView, viewLayoutStyle: .fullScreen, uiTheme: uiTheme) diff --git a/Sources/VGSCheckoutSDK/Core/Checkout/UseCases/Payment/ViewControllers/PayWithNewCard/VGSPayWithCardViewController.swift b/Sources/VGSCheckoutSDK/Core/Checkout/UseCases/Payment/ViewControllers/PayWithNewCard/VGSPayWithCardViewController.swift index 686c2ab5..fb39e7ef 100644 --- a/Sources/VGSCheckoutSDK/Core/Checkout/UseCases/Payment/ViewControllers/PayWithNewCard/VGSPayWithCardViewController.swift +++ b/Sources/VGSCheckoutSDK/Core/Checkout/UseCases/Payment/ViewControllers/PayWithNewCard/VGSPayWithCardViewController.swift @@ -34,7 +34,7 @@ internal class VGSPayWithCardViewController: VGSBaseCardViewController { super.init(checkoutConfigurationType: paymentService.checkoutConfigurationType, vgsCollect: paymentService.vgsCollect, uiTheme: paymentService.uiTheme) if initialScreen == .payWithNewCard { - VGSCheckoutAnalyticsClient.shared.trackFormEvent(paymentService.vgsCollect.formAnalyticsDetails, type: .formInit, extraData: ["config": "payopt", "configType": "addCard"]) + VGSCheckoutAnalyticsClient.shared.trackFormEvent(paymentService.vgsCollect.formAnalyticsDetails, type: .formInit, extraData: ["config": "payopt", "configType": "addCard", "content": checkoutConfigurationType.configuration.contentAnalytics()]) } }