Log API working with ElasticSeach, PHP and a little piece of Javascript.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
js
php
LICENSE
README.md

README.md

log-api

Log API working with ElasticSeach, PHP and a little piece of Javascript (& Fingerprintjs2 ).

What it uses:

Links:

Really interesting way to analyse your data with:

Installation

Don't forget to set the correct api key you have set and authorized in the PHP config.php file. Also You can limit the types of events and thier description in the config.php file.

Add this at the bottom of your page:

Add fingerprint2:

<script src="//cdn.jsdelivr.net/npm/fingerprintjs2/dist/fingerprint2.min.js"></script>

Add the log-api.js file:

<script src="yourdomain.com/js/log-api.js"></script>

Create a web PHP server

Google is your friend...

Copy paste the php folder

Usage

Call this function anywhere on your website:

sendlog("click","click_on_search");

Or

sendlog(event_type,event_description);

Thanks to ElasticSeach, Kibana, fingerprint2, PhpUserAgent & iplocate.io.