JS tracker engine
Clone repository:
https://github.com/mgarry1336/TrackTheirFoot
Include JavaScript files into your webpage:
<script src="ttf_utils.js" />
<script src="ttf_crypto.js" />
<script src="ttf_db.js" />
<script src="ttf_api.js" />
<script src="ttf_tracker.js" />
<script src="ttf.js" />
Setup '/ttf' endpoint on the server side. TrackTheirFoot transmits JSON data which is encrypted with key derivated from user session cookie (PHPSESSID, JSESSID or any other which is accessible and contains 'SESSID' in its name). The cipher which is used - XSalsa20.
Example of JSON data:
{
"ttfid": "123456",
"visited_pages": [
"index.php",
"login.php",
"admin.php"
],
"meta": {
"date" : "2024-03-03",
"time" : "1723831569.8786500",
},
...
}
Enjoy easy and secure statistics and analysis!
...I'll wait until someone decides to do this...😴