d-analytics
Version:
Google Analytics component for Derby
24 lines (14 loc) • 499 B
Markdown
# d-analytics
Google Analytics component for Derby.
Records page views in Google Analytics for pages where component is added.
## Usage
First of make sure to install d-share through npm `npm install d-analytics`
### Including
```js
app.use(require('d-analytics'));
```
### In template
```html
<analytics id="UA-XXXX-Y"/>
```
<b>Note</b>: You must replace the value <b>UA-XXXX-Y</b> with the web property ID listed in the management interface within Google Analytics.