A plugin to display information about each click, based on Tacoded's IP Click Details.
Requires Your Own URL Shortener (YOURLS) v1.9.2
and above.
Check it out on my own website: ipgrabber.pro. I use Sleeky's front-end, but the default should work.
This plugin uses WhichBrowser's Parser to display IP, user-agent, device, browser, location, and time.
In addition to everything in version 1, as promised, this update provides more tracked stats.
Things like device battery, orientation, language, and screen info can be logged with some Javascript.
However, for this to work, the functions.php
file needs to be modified, which is not recommended.
In fact, "hacking" core files is essentially banned, but I do not know how to do it otherwise.
My modifications are not anything massive. Feel free to check them out on diffchecker.com if desired.
I have also not really tested this super rigorously, so if you find any bugs, feel free to open an issue!
I am aware that by using cookies to store the data, the data will always be one click behind.
I am looking into solutions, but if anyone else can solve it for me, that would be greatly appreciated.
- Install WhichBrowser to the root using
composer require whichbrowser/parser
. - It is possible that you will have the change the path of
vendor/autoload.php
. - In
/user/plugins
, create a new folder nameddevice-details
. - Choose what version you want (see the two sections above to decide).
- Download the right
plugin.php
file from this git repo and drop it into step 3's directory. - If you use version 2, make sure to also replace
/includes/functions.php
with the provided one. - Go to the Plugins admin page (eg.
http://sho.rt/admin/plugins.php
) and activate it. - Even if the admin area is private, you should make the link stats page public.
- Do this by adding
define('YOURLS_PRIVATE_INFOS', false);
toconfig.php
.
This package is licensed under the MIT License.