diff --git a/Sources/SegmentFirebase/FirebaseDestination.swift b/Sources/SegmentFirebase/FirebaseDestination.swift index dc5ce08..780c18f 100644 --- a/Sources/SegmentFirebase/FirebaseDestination.swift +++ b/Sources/SegmentFirebase/FirebaseDestination.swift @@ -118,6 +118,11 @@ public class FirebaseDestination: DestinationPlugin { if let eventName = event.name { var parameters: [String: Any] = [FirebaseAnalytics.AnalyticsParameterScreenName: eventName] + if let properties = event.properties?.dictionaryValue { + let propertiesParameters = returnMappedFirebaseParameters(properties, for: FirebaseDestination.mappedKeys) + parameters = parameters.merging(propertiesParameters) { (current, _) in current } + } + if let campaign = event.context?.dictionaryValue?["campaign"] as? [String: Any] { let campaignParameters = returnMappedFirebaseParameters(campaign, for: FirebaseDestination.campaignMappedKeys) parameters = parameters.merging(campaignParameters) { (current, _) in current }