New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-google-analytics-bridge

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-google-analytics-bridge - npm Package Compare versions

Comparing version 6.1.2 to 7.0.0

2

package.json
{
"name": "react-native-google-analytics-bridge",
"version": "6.1.2",
"version": "7.0.0",
"description": "React Native bridge for using native Google Analytics libraries on iOS and Android",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -189,18 +189,18 @@ <!-- DO NOT EDIT README.md (It will be overridden by README.hbs) -->

- [Parameters](#parameters-24)
- [HitPayload](#hitpayload)
- [TimingMetadata](#timingmetadata)
- [Parameters](#parameters-25)
- [Examples](#examples-26)
- [TimingMetadata](#timingmetadata)
- [EventMetadata](#eventmetadata)
- [Parameters](#parameters-26)
- [Examples](#examples-27)
- [EventMetadata](#eventmetadata)
- [HitPayload](#hitpayload)
- [Parameters](#parameters-27)
- [Examples](#examples-28)
- [CustomMetrics](#custommetrics)
- [Examples](#examples-29)
- [CustomDimensionsByIndex](#customdimensionsbyindex)
- [Examples](#examples-29)
- [Examples](#examples-30)
- [CustomDimensionsFieldIndexMap](#customdimensionsfieldindexmap)
- [Examples](#examples-30)
- [Examples](#examples-31)
- [CustomDimensionsByField](#customdimensionsbyfield)
- [Examples](#examples-31)
- [CustomMetrics](#custommetrics)
- [Examples](#examples-32)

@@ -710,2 +710,34 @@ - [DataLayerEvent](#datalayerevent)

### TimingMetadata
Used when tracking time measurements
#### Parameters
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Required)
- `label` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
#### Examples
```javascript
const timingMetadata = { name: "LoadList" } // name is a required value when tracking timing
tracker.trackTiming("testcategory", 13000, timingMetadata);
```
### EventMetadata
Used when tracking event
#### Parameters
- `label` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
- `value` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** (Optional)
#### Examples
```javascript
const eventMetadata = { label: "v1.0.3", value: 22 }
tracker.trackEvent("FinalizeOrderButton", "Click", eventMetadata);
```
### HitPayload

@@ -769,34 +801,13 @@

### TimingMetadata
### CustomMetrics
Used when tracking time measurements
A dictionary with custom metric values and their index keys.
#### Parameters
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Required)
- `label` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
#### Examples
```javascript
const timingMetadata = { name: "LoadList" } // name is a required value when tracking timing
tracker.trackTiming("testcategory", 13000, timingMetadata);
const customMetrics = { 1: 2389, 4: 15000 }
tracker.trackScreenView("Home", { customMetrics });
```
### EventMetadata
Used when tracking event
#### Parameters
- `label` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** (Optional)
- `value` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** (Optional)
#### Examples
```javascript
const eventMetadata = { label: "v1.0.3", value: 22 }
tracker.trackEvent("FinalizeOrderButton", "Click", eventMetadata);
```
### CustomDimensionsByIndex

@@ -853,13 +864,2 @@

### CustomMetrics
A dictionary with custom metric values and their index keys.
#### Examples
```javascript
const customMetrics = { 1: 2389, 4: 15000 }
tracker.trackScreenView("Home", { customMetrics });
```
### DataLayerEvent

@@ -866,0 +866,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc