如何显示我的网站的访问者总数? [英] How to show the total number of visitors to my website?

查看:99
本文介绍了如何显示我的网站的访问者总数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个ASP.NET Intranet Web应用程序,该应用程序可以为公司中的用户提供简短的测验.现在,我想统计网站的所有访问者的数量,他们进行了测验,或者只是访问网站并阅读了一些信息,例如下载新闻通讯或阅读了一些常规信息.

怎么做?我应该在数据库中为此表放置一个特殊的表吗?

另外,如果有任何有用的免费工具(例如Google Analytics(分析))也将非常有帮助.如您所知,该公司的政策不允许使用Google Analytics(分析).

I am developing an ASP.NET intranet web application that provides short quizzes to the users in the company. I want now to count the number of all visitors to the website either they took some quizzes or just come to the website and read some information like downloading the newsletter or reading some general information.

How to do that? Should I have a special table in the database for this thing?

Also, it will be very helpful if there is any helpful free tool like Google Analytics. As you know, the policy of the company doesn''t allow to use the Google Analytics.

推荐答案

您可以用来在应用程序重新启动时不断增加,您呢?"将需要将值存储在某个位置-在数据库或文件中的某个位置,并在应用程序启动时加载该值.
参考链接:-访客数在WebSite中使用ASP.Net和C# [
You can use to keep incrementing over application restarts, you''ll need to store the value somewhere - in a database or a file somewhere, and load that value up when the application starts.
Reference Link :- Count Number of Visitors in WebSite using ASP.Net and C#[^]


初始化global.asax中的应用程序变量,并在会话开始时对其进行递增.您可以在您的网站上显示此应用程序变量.
Initialize a application variable in global.asax and increment it in session start. You can display this application variable on your website.


这篇关于如何显示我的网站的访问者总数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆