title: Total hit/visitor counter in ASP.NET Core MVC Application
body: <p>I would like to count total ever hit/visitor in my ASP.NET Core Web application. Whenever a new visitor will come to my site, total ever visitor value will be increased by one in database.</p>
  
  <p>In case of traditional ASP.NET MVC Application we can solve the problem by using Session variable in <em>Session_Star()</em> method in the <em>global.asax</em> file.</p>
  
  <p>What would be the best option to do so in ASP.NET Core MVC? Or how can I track whenever a new visitor will come to my site?</p>
  
  <p><strong>Any appropriate solution will highly be appreciated. Thanks!</strong></p>