https://github.com/verzth/statisticjs
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.6%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: verzth
- License: mit
- Language: JavaScript
- Default Branch: master
- Size: 190 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 4
Metadata Files
README.MD
statisticjs
Javascript Library for Statistic Engine, it use in client side to help make auth simpler. For Android SDK version can be found here.
Dependencies
Installation
NPM
bash
npm i @verzth/statisticjs
or
bash
npm i --save @verzth/statisticjs
How to Use:
Add script in your html, use statistic.min.js for minified version, or you can use statistic.bundle.js for minified version which was included tcx.bundle.js, all our bundle (By verzth) doesn't include jquery, so you need to add your own script (Because jquery frequently used by developers).
html <script src="{file_path}/statistic.js"></script>Initialize Statistic object with params, it will use default value if you don't provide params.
javascript var statistic = new Statistic({ serverUrl : '', page : 'host', page_type : 'website', type : 'hit', tcx : new TCX({...}) });Available function:
- setPage(string page): Statistic - Set Page name.
- setPageType(string type): Statistic - Set Page type.
- setInteraction(boolean interaction): Statistic - Set Interaction type, "true" user action, "false" system action.
- setUserID(string id): Statistic - Set User ID, for logged in action.
- send(): void - Send statistic data to server.
- putCustom(string key, string value): Statistic - Add custom attribute to statistic model.
- createHit(): Statistic - Create statistic hit level type.
- createContent(): Statistic - Create statistic content level type. - setID(string id): Statistic - Set Content ID. - setType(string type): Statistic - Set Content Type. - setCategory(string category): Statistic - Set Content Category. - setAction(string action): Statistic - Set Action of Content (Ex: Impression, Click, etc). - setCallforward(string url): Statistic - Set forward action link to trigger backend realtime action.
- makeContent(): Statistic - addContent(): Statistic - Add content to the content bulk. - commit(): Statistic - Close content bulk transaction and push to server. - isContentAvailable(): boolean - Check whether content available or not. - clearContent(): Statistic - Clear all content stack.
- createEvent(): Statistic - Create statistic event level type. - setID(string id): Statistic - Set Event ID such as invoice number. - setType(string type): Statistic - Set Event Type. - setCategory(string category): Statistic - Set Event Category. - setName(string name): Statistic - Set Name of Event (Ex: Sale, Buy, Play, Open App, etc). - setCallforward(string url): Statistic - Set forward action link to trigger backend realtime action. - setSuccess(boolean state|true): Statistic - Set event status state. - setRejectionCode(string code): Statistic - Set event Rejection Code. - setRejectionMessage(string message): Statistic - Set event Rejection Message.
*Note: This library only available for internal corporate / 3rd Party usages, some features may not described.
Owner
- Name: Dodi Triwibowo
- Login: verzth
- Kind: user
- Website: https://verzth.work
- Repositories: 35
- Profile: https://github.com/verzth
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0