I want to implement GTM with firebase analytics, firebase is already configured in my app with these versions:
"@react-native-firebase/analytics": "19.3.0",
"@react-native-firebase/app": "^19.0.0"
Google Analytics is working in both Android and iOS, and GTM is also working for android. But I am facing issues while making it work with iOS. I have followed the official documentation of google that we need to create container folder and then need to place the container json file in that, I have tried that multiple times with different approaches but the GTM is still not working, although the analytics events are working but without GTM (in iOS).
These are the content of my podfile:
pod 'SPTPersistentCache', :modular_headers => true
pod 'DVAssetLoaderDelegate', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'GoogleTagManager', :modular_headers => true
I am using XCode 16.0, and I need assistance in integrating GTM in these versions and a step by step guide how to add the container file, as I have tried with multiple approaches but in the Xcode debug console I get this warning: "GoogleTagManager warning: No default container found. Container needs to be added to a container folder and added to the target."
I have tried by creating container folder in ios root folder in my project folder i.e. ios-root/my-project/container/GTM-XXXX.json but it is still not working. In XCode console i get: "GoogleTagManager warning: No default container found. Container needs to be added to a container folder and added to the target."