Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d92df5884f | |||
0958c8cd8b |
15
README.md
15
README.md
@ -21,6 +21,21 @@ Google Analytics everywhere
|
|||||||
## Usage
|
## Usage
|
||||||
Use TypeScript for best in class instellisense.
|
Use TypeScript for best in class instellisense.
|
||||||
|
|
||||||
|
### Why does this package exist?
|
||||||
|
Tracking users in webapps is common. We use Google Analytics to gain insight in aho is using what
|
||||||
|
and where to spend resources for best efficiency.
|
||||||
|
|
||||||
|
Doing the same stuff in apps can be a bit of a hassle. Unnecessary dependencies tend to make apps slow that do any kind of analtics.
|
||||||
|
Say hello to smartanalytics. It features a very slim dependency tree using the native node request module to send posts to Google Analytics.
|
||||||
|
|
||||||
|
### How do I use this package?
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import {AnalyticsAccount} from 'smartanalytics'
|
||||||
|
let myAnalyticsAccount = new AnalyticsAccount('My App Name', 'UA-XXXXXX-Y')
|
||||||
|
myAnalyticsAccount.sendEvent('npmtool', 'install', 'somelabel')
|
||||||
|
```
|
||||||
|
|
||||||
For further information read the linked docs at the top of this README.
|
For further information read the linked docs at the top of this README.
|
||||||
|
|
||||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartanalytics",
|
"name": "smartanalytics",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Google Analytics everywhere",
|
"description": "Google Analytics everywhere",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
Reference in New Issue
Block a user