webpagelogger

NPM module for your websites what logs the visit of webpages to your API logger. It sends per POST all possible info what can be gathered from JavaScript including the unique JavaScript fingerprint to your API. The content data is sent asynchronous via PO

Usage no npm install needed!

<script type="module">
  import webpagelogger from 'https://cdn.skypack.dev/webpagelogger';
</script>

README

Webpagelogger

NPM module for your websites what logs the visit of webpages to your API logger. It sends per POST all possible info what can be gathered from JavaScript including the unique JavaScript fingerprint to your API. The content data is sent asynchronous via POST in a JSON format.

Demo: https://webpagelogger.calantas.org

Usage:

Add a script import tag to your project:

<script src="node_modules/webpagelogger/dist/webpagelogger.js"></script>

Add the below to your code declaration:

example:


window.onload = async function () {
 let wpl = new Webpagelogger({
     "log_api": "http://couchdb.foo.com/logger", // required  
     "log_data": "json",  // json(default) or  x-www-form-urlencoded 
     "log_method": "POST" // POST(default) or PUT(not supported yet)
     });
 await wpl.logit();
};


Inter Used Javascript Fingerprint