# ta-react-ga

> Example component description.

Latest version **1.0.0-0** (published 2016-11-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install ta-react-ga
pnpm add ta-react-ga
yarn add ta-react-ga
bun add ta-react-ga
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-0 |
| Published | 2016-11-01 |
| First published | 2016-11-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kaspar Manz |
| Maintainers | xeophin |
| Keywords | react, component, google, analytics |

## Links

- npm: https://www.npmjs.com/package/ta-react-ga
- Repository: https://gitlab.com/ta-interactive/react-ga
- Homepage: https://gitlab.com/ta-interactive/react-ga#README
- Issues: https://gitlab.com/ta-interactive/react-ga/issues
- npm.io page: https://npm.io/package/ta-react-ga

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^15.3.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0-0 (latest) — 2016-11-01

## README

# Google Analytics Component

Component for adding Google Analytics code into a page.

## Installation

```bash
npm install ta-react-componentname --save
```

## Usage

```js
import GoogleAnalytics from 'ta-react-ga';

...

class YourComponent extends React.Component {
  render() {
  
    const trackerDefinitions = [
                                 {
                                     "id": "UA-111111-1",
                                     "name": "example1",
                                     "refresh": "01.11.2016 13:42:47",
                                     "cache": "false"
                                 },
                                 {
                                     "id": "UA-111111-7",
                                     "name": "example2",
                                     "refresh": "01.11.2016 13:42:47",
                                     "cache": "false"
                                 }
                             ]

    return (
      <GoogleAnalytics trackers={trackerDefinitions} />
    )
  }
}

```

## API – 1.0.0

### Props

Property | Type | Required | Description
------|----|---------|-----------
`trackers` | `[object]` | yes | An array of tracker definitions, as seen in the example above.

---
_Source: https://npm.io/package/ta-react-ga · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
