voerro / laravel-visitor-tracker

Visitor tracker and statistics for Laravel 5.5+ (abandoned for the time being, feel free to take over)
67 stars 41 forks source link

How I can change to my API account? #8

Closed mohamedsabil83 closed 6 years ago

mohamedsabil83 commented 6 years ago

How I can change the API to my own one. The package count each link visited and reach the maximum request in just 7 days.

AlexMordred commented 6 years ago

You can change the geoip API in the config file. Although only 2 providers are supported.

mohamedsabil83 commented 6 years ago

No, I mean keeping the freegeoip.net but adding my account details to allow more request.

BTW, userinfo.io returns wrong info while I'm in Saudi Arabia its feed I'm in the British Kingdom.

AlexMordred commented 6 years ago

I had to update the package since "freegeoip.net" has become "ipstack.com". Please update the package to v1.2.1 and publish the new config file. You can register with ipstack for free and enter the API key inside the package's config file. You might need to truncate (clear) the 'jobs' and 'failed_jobs' DB tables completely.

mohamedsabil83 commented 6 years ago

Thank you man, I'll update it today. Any advice on how to reduce requested from the same user like using cache somehow or any other way? cause the first time I use it, the requested amount end in 4 days while the site is new and there is not many people know about it.

AlexMordred commented 6 years ago

Hmm, there's no caching in the package. Maybe you could try replacing the package's middleware with your own. Ipstack gives you 10 000 requests per months for free, do you get that many visitors on a new site?

mohamedsabil83 commented 6 years ago

yes, about 60 visitors and site stop cause returning an error cause amount ending. maybe I let package count only homepage visitors and ignore the rest of page. I'll take a look again to your middleware and see what I can do.