bemobi-react-analytics
v1.0.10
Published
[![NPM](https://img.shields.io/npm/v/products-analytics.svg)](https://www.npmjs.com/package/products-analytics) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
Downloads
8
Readme
react-analytics
Create new version
Make your change, create a pull request for products team and after the aproval type the following command
npm run deploy
Install
npm install --save @bemobi/react-analytics
Usage
import * as React from 'react'
import { Analytics } from 'react-analytics'
import { User } from './mypackager'
class Example extends React.Component {
render () {
return (
{/* "page" prop will be "window.location.pathname" if undefined */}
<Analytics user={user} page={"/home"} />
)
}
}