React Native: GoogleTagManager
Setup
Sign up for Google Tag Manager and create a mobile container. Select Legacy for SDK Version, and be sure to make a note of your property's tracking Id.
Install the following npm package, GoogleAnalyticsBridge.
For each mobile platform (Android or iOS), you need to follow its corresponding manual installation for GoogleAnalyticsBridge usage.
Install the target:
Usage
Event Definitions
Notes
If an event object doesn't have an
event
property, but has ahitType
property, this target will create anevent
property and set it to thehitType
string. For example:
This gives you the option to use the event definitions exposed by the Google Analytics target
Last updated