Huge News!Announcing our $40M Series B led by Abstract Ventures.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 5.7.1 to 5.8.0

android/src/main/java/com/idehub/GoogleAnalyticsBridge/ConvertToWritable.java

2

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

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

@@ -99,2 +99,12 @@ # GoogleAnalyticsBridge [![npm version](https://img.shields.io/npm/v/react-native-google-analytics-bridge.svg)](https://www.npmjs.com/package/react-native-google-analytics-bridge) [![Build Status](https://travis-ci.org/idehub/react-native-google-analytics-bridge.svg?branch=master)](https://travis-ci.org/idehub/react-native-google-analytics-bridge)

});
// You can also register Function Call tag handlers when the container is open.
GoogleTagManager.registerFunctionCallTagHandler(
"some_function", // Must be equal to Function Name field when the tag was configured.
(functionName, tagArguments) => {
// functionName is passed for convenience. In this example it will be equal to "some_function".
// tagArguments is an object and is populated based on Tag configuration in TagManager interface.
console.log("Handling Function Call tag:", functionName);
}
)
```

@@ -622,2 +632,19 @@

### registerFunctionCallTagHandler(functionName, handler)
##### Parameter(s)
* **functionName (required):** String
* **handler (required):** function
Resgisters a Function Call tag handler based on name of the function that has been configured in the Tag Manager interface.
```javascript
GoogleTagManager.registerFunctionCallTagHandler("name_of_the_function", (functionName, tagArguments) => {
// Handle the Function Tag when it is fired
}).then(() => {
console.log("Function call tag handler has been registered");
});
```
### setVerboseLoggingEnabled(enabled)

@@ -624,0 +651,0 @@

import { GoogleTagManagerBridge } from './NativeBridges';
import FunctionCallTagHandler from './Helpers/FunctionCallTagHandler';

@@ -48,2 +49,11 @@ export class GoogleTagManager {

/**
* Register Function Call tag handler
* @param {String} functionName
* @param {Function} handler
*/
static registerFunctionCallTagHandler(functionName, handler){
return FunctionCallTagHandler(GoogleTagManagerBridge, functionName, handler)
}
/**
* Sets logger to verbose

@@ -50,0 +60,0 @@ * @param {Boolean} enabled

@@ -355,2 +355,9 @@ export interface Product {

static setVerboseLoggingEnabled(enabled: boolean): Promise<boolean>
/**
* Register Function Call tag handler
* @param {String} functionName
* @param {Function} handler
*/
static registerFunctionCallTagHandler(functionName: string, handler: (functionName: string, tagArguments: any) => any): Promise<boolean>
}
{
"extends": "dtslint/dtslint.json",
"rules": {
"semicolon": false,
"indent": [true, "spaces"],
"no-redundant-jsdoc": false,
"no-unnecessary-class": false
}
}
"extends": "dtslint/dtslint.json",
"rules": {
"semicolon": false,
"indent": [true, "spaces"],
"no-redundant-jsdoc": false,
"no-unnecessary-class": false,
"no-implicit-dependencies": false
}
}

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