{"id":23818045,"url":"https://github.com/lsongdev/analytics.js","last_synced_at":"2026-05-06T11:30:18.576Z","repository":{"id":68773591,"uuid":"150698217","full_name":"lsongdev/analytics.js","owner":"lsongdev","description":"analytics.js","archived":false,"fork":false,"pushed_at":"2019-06-14T13:56:14.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T22:23:36.396Z","etag":null,"topics":["analytics","analytics-tracking"],"latest_commit_sha":null,"homepage":"https://github.com/song940/analytics.js","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lsongdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"song940","patreon":"song940","open_collective":"song940","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://git.io/fjRcB"}},"created_at":"2018-09-28T06:53:31.000Z","updated_at":"2019-11-05T02:28:53.000Z","dependencies_parsed_at":"2023-02-26T22:45:36.453Z","dependency_job_id":null,"html_url":"https://github.com/lsongdev/analytics.js","commit_stats":null,"previous_names":["lsongdev/analytics.js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fanalytics.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fanalytics.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fanalytics.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fanalytics.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/analytics.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240093154,"owners_count":19746780,"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","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":["analytics","analytics-tracking"],"created_at":"2025-01-02T05:49:24.346Z","updated_at":"2026-05-06T11:30:18.512Z","avatar_url":"https://github.com/lsongdev.png","language":"JavaScript","funding_links":["https://github.com/sponsors/song940","https://patreon.com/song940","https://opencollective.com/song940","https://git.io/fjRcB"],"categories":[],"sub_categories":[],"readme":"## analytics.js [![analytics.js](https://img.shields.io/npm/v/analytics.js.svg)](https://npmjs.org/analytics.js)\n\n\u003e analytics sdk\n\n### Installation\n\n```bash\n$ npm install https://github.com/song940/analytics.js.git\n```\n\n### Example\n\n```html\n\u003cscript src=\"./analytics.js\"\u003e\u003c/script\u003e\n\n\u003ca id=\"app\" class=\"btn\" href=\"http://lsong.org\"\u003etrackClick\u003c/a\u003e\n\n\u003cscript\u003e\n  const ga = Analytics();\n  ga.trackView();\n  document.addEventListener('click', e =\u003e {\n    e.preventDefault();\n    ga.trackClick(e);\n  });\n\u003c/script\u003e\n```\n\n### Contributing\n- Fork this Repo first\n- Clone your Repo\n- Install dependencies by `$ npm install`\n- Checkout a feature branch\n- Feel free to add your features\n- Make sure your features are fully tested\n- Publish your local branch, Open a pull request\n- Enjoy hacking \u003c3\n\n### MIT\n\nThis work is licensed under the [MIT license](./LICENSE).\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fanalytics.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Fanalytics.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fanalytics.js/lists"}