I'm happy to see that Get-Simple is still alive!
So I finally found the time to update the hitcount plugin to re-enable the country mapping and fix some annoyances like Windows 8/10 not being recognized:
Hitcount version 2.2:
The IP columns must specify the IP in decimal format, the country code must be 2 letters.
If your hosting provider or your hosting plan does not support downloading files from other sites, you can download the file manually and place it in /data/other as ip2country.zip or ip2country.csv and then select "Download IP to country database" on the hitcount administration page.
BTW: the plugin only sets a 30 minute cookie with a visit number and country to be able to combine the hits of one visit. No IP addresses are stored on the server nor is anything transferred to another site, so I suppose that pobably no cookie popup is needed in the EU.
So I finally found the time to update the hitcount plugin to re-enable the country mapping and fix some annoyances like Windows 8/10 not being recognized:
Hitcount version 2.2:
- the visitor-to-country mapping now supports IPv6
- the user-agent-to-operating-system mapping was updated to include Windows 8 and 10
- the visit cookie now sets SameSite = Lax to be future proof
- the referrer tab can now be opened even for thousands of referrers - the least important referrers are dropped to avoid memory overflow
- the selected time period is now passed to other hitcount tabs
- 404 (page not found) hits are ignored
- included the portuguese translation of almirb - thank you!
PHP Code:
define('HITCOUNT_URL', 'https://www.ip2location.com/download/?token=MY_TOKEN&file=DB1LITEIPV6');
#define('HITCOUNT_IPFROM_COLUMN', 0);
#define('HITCOUNT_IPTO_COLUMN', 1);
#define('HITCOUNT_COUNTRYCODE_COLUMN', 2);
#define('HITCOUNT_COUNTRYNAME_COLUMN', 3);
If your hosting provider or your hosting plan does not support downloading files from other sites, you can download the file manually and place it in /data/other as ip2country.zip or ip2country.csv and then select "Download IP to country database" on the hitcount administration page.
BTW: the plugin only sets a 30 minute cookie with a visit number and country to be able to combine the hits of one visit. No IP addresses are stored on the server nor is anything transferred to another site, so I suppose that pobably no cookie popup is needed in the EU.