@front10/landing-page-book
Version:
A react library for landing page
21 lines (20 loc) • 1.13 kB
Markdown
[](https://github.com/RichardLitt/standard-readme)
`@front10/landing-page-book/Analytics` is used to send statistics of visits to google analytics
1- Add following content to import the component:
```js
import Analytics from "@front10/landing-page-book/dist/components/Analytics";
```
2- Put this code into jsx page:
```html
<Analytics idTracking='UA-0000000-1' />
```
| </br>Name | </br>Type | </br>Summary | </br>Default |
| ---- | ---- | ---- | ---- |
| debug | `bool` | If set to true, will output additional feedback to the console | `false` |
| idTracking<font color="red">*</font> | `string` | Tracking ID code of your property in google analytics | |
| testMode | `bool` | Enable test mode in the component | `false` |
| urlPath | `string` | Path you want to track, for example '/section/page1' | `typeof window !== 'undefined' && typeof window.location !== 'undefined' ? window.location.pathname + window.location.search : ''` |