Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
495a3ffafd | |||
ffd1274f21 | |||
8e4ad6159a | |||
c5a2383fd3 | |||
2c25cd0655 | |||
370caae226 | |||
75c3979120 |
@ -15,7 +15,9 @@ stages:
|
||||
testLEGACY:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test legacy
|
||||
- npmci node install lts
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
@ -24,7 +26,9 @@ testLEGACY:
|
||||
testLTS:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test lts
|
||||
- npmci node install lts
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
@ -32,7 +36,9 @@ testLTS:
|
||||
testSTABLE:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test stable
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
@ -40,7 +46,8 @@ testSTABLE:
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
- npmci publish
|
||||
- npmci npm prepare
|
||||
- npmci npm publish
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
|
46
docs/index.md
Normal file
46
docs/index.md
Normal file
@ -0,0 +1,46 @@
|
||||
# smartanalytics
|
||||
Google Analytics everywhere
|
||||
|
||||
## Availabililty
|
||||
[](https://www.npmjs.com/package/smartanalytics)
|
||||
[](https://GitLab.com/pushrocks/smartanalytics)
|
||||
[](https://github.com/pushrocks/smartanalytics)
|
||||
[](https://pushrocks.gitlab.io/smartanalytics/)
|
||||
|
||||
## Status for master
|
||||
[](https://GitLab.com/pushrocks/smartanalytics/commits/master)
|
||||
[](https://GitLab.com/pushrocks/smartanalytics/commits/master)
|
||||
[](https://www.npmjs.com/package/smartanalytics)
|
||||
[](https://david-dm.org/pushrocks/smartanalytics)
|
||||
[](https://www.bithound.io/github/pushrocks/smartanalytics/master/dependencies/npm)
|
||||
[](https://www.bithound.io/github/pushrocks/smartanalytics)
|
||||
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||
[](http://standardjs.com/)
|
||||
|
||||
## 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)
|
||||
|
||||
[](https://push.rocks)
|
@ -1,9 +1,8 @@
|
||||
{
|
||||
"npmts": {
|
||||
"coverageTreshold": 40
|
||||
},
|
||||
"npmci": {
|
||||
"globalNpmTools": [
|
||||
"npmGlobalTools": [
|
||||
"npmts"
|
||||
]
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "smartanalytics",
|
||||
"version": "2.0.6",
|
||||
"version": "2.0.9",
|
||||
"description": "Google Analytics everywhere",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
|
Reference in New Issue
Block a user