Closed saeedbashir closed 3 years ago
@saeedbashir Google deprecated Google Analytics for mobile in 2019. The Segment-GoogleAnalytics
lib should be removed and you should rely exclusively on Segment-Firebase
. Please feel free to reach out to friends@segment.com if you're still running into issues with your Firebase implementation.
Hello @saeedbashir and @alanjcharles ! I have similar problem
My dependencies :
pod 'Analytics', '~> 4.1'
pod 'Segment-Firebase', '2.7.12'
My code for Segment-Firebase Integration :
let configuration = AnalyticsConfiguration(writeKey: "MyKEY")
configuration.trackApplicationLifecycleEvents = true
configuration.flushAt = 1
configuration.recordScreenViews = true
configuration.use(SEGFirebaseIntegrationFactory.instance())
Analytics.setup(with: configuration)
Analytics.debug(true)
My code for events:
Analytics.shared().track("ItemPurchased", properties: ["item": "Sword of Heracles", "revenue": 2.95])
And I can't see data/events on my Firebase console, but if log a event using
FirebaseAnalytics.Analytics.logEvent("Testevent", parameters: ["message" :"Testing"])
I saw data in Firebase console.
Is something missing from the configuration? Why if I use the Analytics.logEvent it's works ?
Thanks in advance
I'm using the latest
Segment-Firebase
library to send events to the firebase console along with the segment librarySegment-GoogleAnalytics
. The events are being sent successfully by using theSegment-GoogleAnalytics
library but I'm getting the following error while sending the same events to the firebase console with the same parameters.Error
Parameters
Can you please let me know why the same parameters are not working for the firebase console and how I can fix it?