• 大小: 0.05M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: MVC  asp.net  访客  

资源简介

访客追踪

用法示例,网页中放入如下 javascript:

var _maq = _maq || [];
_maq.push(['_setAccount', 'SmartTracking']);
_maq.push(['_trackPageview']);
_maq.push(['_trackSubmit']);
_maq.push(['_trackClick']);
_maq.push(['_trackMover']);

(function () {
    var ma = document.createElement('script'); ma.type = 'text/javascript'; ma.async = true;
    ma.src = ('https:' == document.location.protocol ? 'https://' : 'http://')   'localhost:50374/ma.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ma, s);
})();

资源截图

代码片段和文件信息

using System.Web.Mvc;
using System.Web.Routing;

namespace SmartTracking
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-08-18 10:44  SmartTracking-master\
     文件         585  2014-08-18 10:44  SmartTracking-master\README.md
     文件         986  2014-08-18 10:44  SmartTracking-master\SmartTracking.sln
     目录           0  2014-08-18 10:44  SmartTracking-master\SmartTracking\
     目录           0  2014-08-18 10:44  SmartTracking-master\SmartTracking\App_Start\
     文件         268  2014-08-18 10:44  SmartTracking-master\SmartTracking\App_Start\FilterConfig.cs
     文件         583  2014-08-18 10:44  SmartTracking-master\SmartTracking\App_Start\RouteConfig.cs
     目录           0  2014-08-18 10:44  SmartTracking-master\SmartTracking\Controllers\
     文件        1546  2014-08-18 10:44  SmartTracking-master\SmartTracking\Controllers\HomeController.cs
     目录           0  2014-08-18 10:44  SmartTracking-master\SmartTracking\Entities\
     文件         246  2014-08-18 10:44  SmartTracking-master\SmartTracking\Entities\DefaultDbContext.cs
     文件        2679  2014-08-18 10:44  SmartTracking-master\SmartTracking\Entities\VisitorRecord.cs
     目录           0  2014-08-18 10:44  SmartTracking-master\SmartTracking\Extendsions\
     文件         733  2014-08-18 10:44  SmartTracking-master\SmartTracking\Extendsions\StringExtendsions.cs
     目录           0  2014-08-18 10:44  SmartTracking-master\SmartTracking\Filter\
     文件         542  2014-08-18 10:44  SmartTracking-master\SmartTracking\Filter\ValidateModelStateAttribute.cs
     文件         104  2014-08-18 10:44  SmartTracking-master\SmartTracking\Global.asax
     文件         395  2014-08-18 10:44  SmartTracking-master\SmartTracking\Global.asax.cs
     目录           0  2014-08-18 10:44  SmartTracking-master\SmartTracking\Models\
     文件        1086  2014-08-18 10:44  SmartTracking-master\SmartTracking\Models\HomeIndexRequest.cs
     目录           0  2014-08-18 10:44  SmartTracking-master\SmartTracking\Properties\
     文件        1352  2014-08-18 10:44  SmartTracking-master\SmartTracking\Properties\AssemblyInfo.cs
     目录           0  2014-08-18 10:44  SmartTracking-master\SmartTracking\scripts\
     文件         302  2014-08-18 10:44  SmartTracking-master\SmartTracking\scripts\_references.js
     文件       51458  2014-08-18 10:44  SmartTracking-master\SmartTracking\scripts\modernizr-2.6.2.js
     文件       10318  2014-08-18 10:44  SmartTracking-master\SmartTracking\scripts\respond.js
     文件        4860  2014-08-18 10:44  SmartTracking-master\SmartTracking\scripts\respond.min.js
     文件       10529  2014-08-18 10:44  SmartTracking-master\SmartTracking\SmartTracking.csproj
     文件         830  2014-08-18 10:44  SmartTracking-master\SmartTracking\Test.html
     目录           0  2014-08-18 10:44  SmartTracking-master\SmartTracking\Views\
     目录           0  2014-08-18 10:44  SmartTracking-master\SmartTracking\Views\Shared\
............此处省略10个文件信息

评论

共有 条评论