add README
This commit is contained in:
		
							
								
								
									
										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)
 | 
			
		||||
		Reference in New Issue
	
	Block a user