{"id":13671515,"url":"https://github.com/fex-team/alogs","last_synced_at":"2025-08-16T14:35:24.886Z","repository":{"id":8764616,"uuid":"10448337","full_name":"fex-team/alogs","owner":"fex-team","description":"前端统计框架","archived":false,"fork":false,"pushed_at":"2015-10-23T11:01:57.000Z","size":452,"stargazers_count":453,"open_issues_count":2,"forks_count":97,"subscribers_count":53,"default_branch":"master","last_synced_at":"2025-08-09T11:20:56.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fex-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-03T06:17:19.000Z","updated_at":"2024-11-29T00:48:14.000Z","dependencies_parsed_at":"2022-09-08T23:41:01.977Z","dependency_job_id":null,"html_url":"https://github.com/fex-team/alogs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fex-team/alogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fex-team%2Falogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fex-team%2Falogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fex-team%2Falogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fex-team%2Falogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fex-team","download_url":"https://codeload.github.com/fex-team/alogs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fex-team%2Falogs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270333528,"owners_count":24566446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T09:01:11.616Z","updated_at":"2025-08-16T14:35:24.821Z","avatar_url":"https://github.com/fex-team.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"alogs\n\n=======\n\n[![Build Status](https://img.shields.io/travis/fex-team/alogs/master.svg)](https://travis-ci.org/fex-team/alogs)\n[![NPM version](https://img.shields.io/npm/v/alogs.svg)](http://badge.fury.io/js/alogs)\n\n## 概述\n\nalogs 是一个可以并行多个统计模块的框架\n\n## 使用\n\n### 安装\n\n```\n$npm install alogs\n```\n\n或者\n\n```\n$bower install alogs\n```\n\n### 引用\n\n```html\n\u003cscript\u003e\nvoid function(e,t,n,a,o,i,m){\n  e.alogObjectName=o,e[o]=e[o]||function(){(e[o].q=e[o].q||[]).push(arguments)},e[o].l=e[o].l||+new Date,i=t.createElement(n),i.asyn=1,i.src=a,m=t.getElementsByTagName(n)[0],m.parentNode.insertBefore(i,m);\n}(window,document,\"script\",\"../../alog.min.js\",\"alog\");\n\u003c/script\u003e\n```\n\n### 背景\n\n我们会使用或开发各种不同的统计模块对产品的使用情况进行收集，以便衡量产品的健康状况和对产品发展方向进行决策\n\n+ 随着前端交互越来越丰富，统计要分析的维度也越来越多样\n+ 经常一个页面中就会并行着多个统计模块：有性能相关的、有点击相关的、有业务相关的\n+ alogs 使用一些少量简单的 API 将这些复杂的统计模块统一组织起来\n\n### 解决什么问题？\n\n+ 减少统计模块加载对产品的影响\n\n\u003e alogs 使用异步方式加载统计模块，不堵塞页面正常资源加载；\n\u003e 另外值得一提的是，alogs 的模块文件不依赖加载顺序、兼容同步和异步加载。\n\n+ 并行多个统计模块\n\n### alogs 适合什么应用场景？\n\n+ 简单统计\n\n\u003e 直接这页面中调用\n\n+ 复杂统计\n\n\u003e 定义和业务紧密相关的复杂模块\n\n### 代理统计\n\n\u003e 接入第三方统计模块\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffex-team%2Falogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffex-team%2Falogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffex-team%2Falogs/lists"}