React-native-firebase: Is it possible to use Analytics module for GTM tracking

Created on 28 Feb 2020  路  9Comments  路  Source: invertase/react-native-firebase

I didn't find actually any mentioning in the documentation if it's possible to use the Analytics module to integrate with Google Tag Manager?
Does it support it?

Most helpful comment

Hi guys
I need same thing
Did you succeed with this?

All 9 comments

Not with this module, however it's fairly trivial to implement it yourself by following the Google guides, e.g: https://developers.google.com/tag-manager/android/v5/

Got it, thank you @Ehesp. I was just wondering how to invoke the GTM methods from RN code...
But if I've read your link correctly it seems like GTM should intercept the events from Firebase Analytics. So I assume if I have RNFB Analytics integrated, after adding GTM pod everything should work just fine?

@alex-mironov Not necessarily, I am currently facing some issues on iOS with the GTM installed trough pods and having RNFB Analytics.
I have just added a GTM container and when I am running then the app crashes at startup.
Others have this issue as well and it may be a conflict between Firebase versions and GTM:
https://github.com/firebase/firebase-ios-sdk/issues/2059
https://github.com/firebase/firebase-ios-sdk/issues/3921
https://stackoverflow.com/questions/46751963/ios-app-crashes-while-it-is-loading-the-googletagmanager-container

I am currently investigating this so this is just a heads up.

Hi guys
I need same thing
Did you succeed with this?

I follow up on this @LorandP @Ehesp @alex-mironov, any further movement on this?

I made it possible actually
But there's lots to explain

I follow up on this @LorandP @Ehesp @alex-mironov, any further movement on this?

@kesha-antonov haha ok. I would love to hear :P
How would you proceede?
A short meeting?
You sharing the most important links?
Gisting some of your code?
Sharing a picture of some architecture view you have?

I just would like some breadcrumb to follow along from somone who have gotten it to work :D

@kesha-antonov haha ok. I would love to hear :P
How would you proceede?
A short meeting?
You sharing the most important links?
Gisting some of your code?
Sharing a picture of some architecture view you have?

I just would like some breadcrumb to follow along from somone who have gotten it to work :D

You need to create class in which you would call your tracking tool
On GTM website you add function to call this class with params you need
In RN you call RN-firebase - it sends event to firebase & also calls GTM
I can show it later in a few days

@kesha-antonov haha ok. I would love to hear :P

You need to create class in which you would call your tracking tool
On GTM website you add function to call this class with params you need
In RN you call RN-firebase - it sends event to firebase & also calls GTM
I can show it later in a few days

Thanks for the leads, look forward to hear from you in a couple days

Was this page helpful?
0 / 5 - 0 ratings