profitwell-component
v0.1.2
Published
Simple react component to track by profitwell
Downloads
48
Readme
profitwell-component
Simple react component to track by profitwell.
Usage
You can add tracking code by following.
import Profitwell from 'profitwell-component';
const App = ({email}) => {
return (
<div>
<h1>Hello World</h1>
<Profitwell authToken="YOUR_PROFITWELL_TOKEN" email={email} />
</div>
)
}
And use shouldNotLoad
prop, you can run only specific environment.
import Profitwell from 'profitwell-component';
const App = ({email}) => {
const isDevelopment = process.env.NODE_ENV !== 'production'
return (
<div>
<h1>Hello World</h1>
<Profitwell
authToken="YOUR_PROFITWELL_TOKEN"
email={email}
shouldNotLoad={isDevelopment}
/>
</div>
)
}