4 Commits

Author SHA1 Message Date
80f9201ff0 1.0.3 2017-02-25 01:34:26 +01:00
9e3e4014b7 update README 2017-02-25 01:32:49 +01:00
d92df5884f 1.0.2 2017-02-25 00:36:16 +01:00
0958c8cd8b updated README 2017-02-25 00:36:12 +01:00
2 changed files with 19 additions and 1 deletions

View File

@ -21,6 +21,24 @@ Google Analytics everywhere
## Usage
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 who 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 used by many existing analytics tools make the whole app slow
just to gain a little usage info.
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.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)

View File

@ -1,6 +1,6 @@
{
"name": "smartanalytics",
"version": "1.0.1",
"version": "1.0.3",
"description": "Google Analytics everywhere",
"main": "dist/index.js",
"typings": "dist/index.d.ts",