Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BstName/every-click-counts
YOURLS plugin to count every click, that is, including multiple clicks for the same client.
https://github.com/BstName/every-click-counts
Last synced: 2 months ago
JSON representation
YOURLS plugin to count every click, that is, including multiple clicks for the same client.
- Host: GitHub
- URL: https://github.com/BstName/every-click-counts
- Owner: BstName
- License: mit
- Created: 2016-03-31T22:41:00.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-20T01:29:51.000Z (almost 4 years ago)
- Last Synced: 2024-08-02T06:15:14.691Z (5 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - Every Click Counts - Click count include multiple clicks for the same client (ie there will be no browser caching of the redirection). (Plugins / E)
README
Every Click Counts
==================Plugin for [YOURLS](http://yourls.org) `1.5+`.
Description
-----------
This plugin, aptly named "Every Click Counts", is for counting *every* click. That is, including multiple clicks for the same client. This is done by not caching the HTTP 301 redirects.Installation
------------
1. In `/user/plugins`, create a new folder named `every-click-counts`.
2. Drop these files in that directory.
3. Go to the Plugins administration page ( *e.g.* `http://sho.rt/admin/plugins.php` ) and activate the plugin.
4. Have fun (with counts in large amounts)!License
-------
* Copyright (c) 2016 BestNa.me (http://BestNa.me)
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.phpBackground
--------------
This plugin prevents the caching of [HTTP 301 redirects](https://en.wikipedia.org/wiki/HTTP_301) as issued by [YOURLS](http://yourls.org) for every short URL. With such a redirect cached in a client browser, the client will not hit the server with the YOURLS installation on subsequent visits of the respective short URL (but rather jump directly to the corresponding long URL). Consequently, only a first client hit of a short URL can be counted by [YOURLS](http://yourls.org). In other words, subsequent hits are not included in the clicks statistics.Some people may want to track *every* click instead, that is, also track *multiple* clicks for the *same* client. If this is what you want: OK, this is exactly what the plugin was made for. If activated, HTTP 301 redirects are not cached anymore.
To flawlessly see your own multiple clicks as an admin counted, notice the following: if you had already used your [YOURLS](http://yourls.org) install before activating this plugin, you may first want to get rid of the redirects already cached in your browser. Depending on the particular browser you are using, this might be more or less elaborate, e.g. see this [discussion on stackoverflow.com](http://stackoverflow.com/questions/9130422/how-long-do-browsers-cache-http-301s).