README
logfit.js
Logfit Javascript Client
This is a client that will report website visitor data to log.fit.
Setup (Embedding into web page)
<script>
const LogFitConfig = {
"source": "<your source uuid>"
};
</script>
<script src="logfit.min.js"></script>
Setup (Node)
const LogFit = require('logfit');
const config = {
"source": "<your source uuid>"
};
const logfit = new LogFit(config);
logfit.report();
Release
- Update Changelog with new version
- Update package.json version and run
npm install
- Update
.uglify.json
and.uglify.min.json
- Update client.js version and run
npm run package
- Git commit and tag
npm publish
- Upload
dist/logfit.min.js
to https://github.com/albertyw/logfit.js/releases