Releases: idehub/react-native-google-analytics-bridge
Add refreshContainer-function for GTM
What’s Changed
- Fix FunctionCallTag registering in iOS and support to manually refreshing the container (#316) @farzadshafiee
Fix "compile" Gradle-warnings for newer RN-versions
What’s Changed
- Fixed gradle warning of deprecated 'compile' configuration (#294) @ShaPOC
- Remove old examples, add new RN 57 example (#297) @cbrevik
Major version?
Since the implementation configuration is not valid for older versions of Gradle, this is a breaking change and therefore a major version. You should be on a newer React Native version (0.57+) for this version.
Fix for event value
Fix compat for Play Services v15+ on Android
As per issues #238 & #247, this release fixes the build issue when using Play Services v15+.
This should allow for better compat with other React Native modules using a Play Services version >=15.
The module automatically uses the highest version, but if you want to use a specific version, this can be done through the googlePlayServicesVersion project build property in Gradle. You can specify it in <your-RN-app>/android/build.gradle:
buildscript {
ext {
googlePlayServicesVersion = "16.0.3"
}
// ... rest of gradle buildscript
}See example file.
This change should be backwards compatible with older Play Services versions as well (at least >= 10).
Patch fix for requiresMainQueueSetup warning
6.0.1 6.0.1
Breaking changes, API surface rewrite + enhanced e-commerce
This module started out as a simple project with an aim to abstract away the native side of the Google Analytics library. The hope was that we could have simple functions like trackScreenView, trackEvent, and developers wouldn't have to think about stuff like building "Hits" and dispatching them.
But as use-cases have become complex, the API of the module became messy. This release hopes to put that right.
The API should mostly be backwards-compatible, except those special use-cases. See this wiki post for more details.
This release also includes a more fully developed enhanced e-commerce, which lets you track even more product actions and impressions.
GTM Custom Function Tags
#256 Support of custom JS function tags in Google Tag Manager, which are triggered from rules setup in your container.
Thanks to @farzadshafiee for the implementation!
Register a function tag by calling:
GoogleTagManager.registerFunctionCallTagHandler(
"some_function",
(functionName, tagArguments) => {
console.log("Handling Function Call tag:", functionName);
console.log("args:", tagArguments);
}Dispatch functions
Thanks to @cpunion we now have dispatch & dispatchWithTimeout!! 💯
Three new methods
Thanks to @mmiani and @rathanDev we get three new methods:
setClient(clientId)trackEventWithCustomDimensionAndMetricValues(category, action, optionalValues, dimensionIndexValueDict)createNewSession(screenName)
💯
New setCurrency and campaign url tracking functions
In this minor release we get two new functions setCurrency (thanks @kurtsergey!) and trackCampaignFromUrl (thanks @maxtechera!).