Get the information in iOS/Android Firebase about a user click on a Google Ad
My target is to get the information in my app of the origin of the user: does he/she come from a Google Ad click?
The flow is: Google Ad -> AppStore/GooglePlay -> App Download -> App Opening -> Firebase custom event (like Register or whatever).
When we connect Firebase and Google Ad together, we can have the conversion funnel available in Google Ads.
It means that the tracker is available in Firebase within the iOS/Android app.
Is it possible to retrieve this tracker from Firebase? I want to send this information to Mixpanel that the user downloaded an app thanks to a Google Ad click.
PS: any answer is good, but I will use React Native or Flutter to implement this behavior.
Thanks!
First of all, integrate firebase with the app React Native or Flutter. The next step is to track the custom events if someone registers or downloads the app, the Firebase Analytics API will track custom events that are performed by a customer. Firebase Analytics API will retrieve the custom event from Firebase to get the data whereas an app is downloaded or someone registers then that data will send to Mixpanel. For that purpose, we need Mixpanel API to track events and send data to Mixpanel. This is the whole flow that you have mentioned above.
The flow is : Google Ad -> AppStore/GooglePlay -> App Download -> App Opening -> Firebase custom event (like Register or whatever).
import 'package:firebase_analytics/firebase_analytics.dart'; import 'package:firebase_analytics/observer.dart'; import 'package:flutter/material.dart'; import 'package:mixpanel/mixpanel.dart'; void main() => runApp(AnaudambroApp()); class AnaudambroApp extends StatefulWidget{ @override _MyAppState createState() => _MyAppState(); } class _MyAppState extends State<AnaudambroApp>{ FirebaseAnalytics analytics = FirebaseAnalytics(); Mixpanel mixpanel = Mixpanel(); @override void initState() { super.initState(); analytics.logEvent(name: 'App Download', parameters: {'source': 'Google Ad'}); mixpanel.track('App Download', {'source': 'Google Ad'}); } @override Widget build(BuildContext context) { return MaterialApp( navigatorObservers: [ FirebaseAnalyticsObserver(analytics: analytics), ], // add your code here ); } }but how do you know 'source': 'Google Ad' ?
I mean that's the whole point of my question: how do I know the source is Google Ad ?
Set up Firebase and Google ad integration so that the conversion data is tracked in firebase. It will be your Google ad source. Access the conversion data using Firebase Analytics API from your app @arnaudambro
Once you have conversion data send it to Mixpanel via their Tracking API. @arnaudambro
> Access the conversion data using Firebase Analytics API from your app : yes that's what I'm looking for! but that's not what you're showing, are you?