Logo
Loading...
Published on

Simple way to check site analytics

Author

So we deployed our site and now we are interested in some analytics is our site even visits someone?

First of all we can add our site to Google Search console and verify it, because why not?

To verify i used meta tag but you can use anything really.

In search console we can see some insights, check links, sitemap etc.

Also interesting would be to check our page speed insights Page speed insights

Ok, now we want to see some pageviews stats and visitors right? Ofcourse we can add Google analytics and get great dashboard in a price of our visitors privacy, but why we would do this?

We can implement server side fingerprinting based on things like:

  • headers order
  • ip
  • user-agent
  • other headers info etc...

Well this is possible, but we are lazy, and this solution anyways will be vulnerable for bots crawlers etc.

On a server we have access logs actually which we can use and they are actually has alot of interesting things inside.

For this purpose we will use GoAccess. It has html version and html version with websockets which you can actually serve and get dashboard with logs insights.

But here we will make just simple terminal version which will give us great report:

goaccess /var/log/nginx/blog.ineersa.com.access.log -c --log-format=COMBINED

GoAccess Image