简体   繁体   中英

Firebase analytics with Google Tag Manager in react native iOS application

I'm using the React Native firebase library for firebase analytics. I wanted to use Google Tag Manager also in my project for iOS application. Is there a way to integrate it into my project while I'm using react-native-firebase ?

This link: https://developers.google.com/tag-manager/ios/v5/ gives me an explanation, but it will not work because react-native-firebase uses v5 of firebase library and Google Tag Manager uses v4 of the same library. I've also tried some third party libraries such as React Native analytics bridge, but no success, because it has poor documentation.

Since you have already configured Firebase in your React Native project, implementing GTM is not a big issue. I am using this package https://www.npmjs.com/package/react-native-gtm in my application. It works perfectly, just follow the link along with the extra steps for iOS.

Note :

  • Just install react-native-gtm using npm, do not link it.
  • And yes, there is no proper documentation related to Google Tag
    Manager in React Native, most of the articles focus on Native
    implementation alone.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM