如何编写代码以查找有多少会员访问了我们的网站 [英] how to write code to find how many members visited our website

查看:48
本文介绍了如何编写代码以查找有多少会员访问了我们的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想看看有多少会员访问了我的网站.所以我必须用C#编写代码.如果有人知道这一点,请帮助我.



在Advance中致谢

Hi,


I want to see how many members visited my site. So i have to write code for that in C#. If anybody know this please help me.



Thanks in Advance

推荐答案

您有很多选择.

1)您可以为网站编写一些内容(例如基本控制器)来捕获页面指标
2)您可以在应用程序级别写一些东西,计算会话数
3)您可以避免重新发明轮子并注册Google Analytics(分析),然后在网站的母版页或布局上粘贴很小的代码块(取决于视图引擎).

GA是免费的.

如果您对其他两种实现有疑问,请在提出更具体的方案时随意提问.

干杯.
You have a lot of options.

1) You can write something (like a base controller) for your web site that captures page metrics
2) You could write something at the application level, counting sessions
3) You could avoid reinventing the wheel and sign up for Google Analytics and paste an oh-so-small chunk of code on your site''s master page or layout (depending on your view engine).

GA is free.

If you have a question about the other two implementations, please feel free to ask questions as you come to more specific scenarios.

Cheers.


您好,您可以引用此URL
http://www.developerfusion.com/code/1745/number-of-visitors-online / [^ ]
Hi You Can refer this URL
http://www.developerfusion.com/code/1745/number-of-visitors-online/[^]


您可以使用第三方小部件...请尝试以下

www.visitwidget.com/widgets_js.htm [ http://24counter.com/ [ ^ ]
you can use third party widgets...try the below

www.visitwidget.com/widgets_js.htm[^]

http://24counter.com/[^]


这篇关于如何编写代码以查找有多少会员访问了我们的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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