{"id":19134092,"url":"https://github.com/umbrellio/ga-tracker","last_synced_at":"2026-06-19T15:33:01.599Z","repository":{"id":94838926,"uuid":"295740606","full_name":"umbrellio/ga-tracker","owner":"umbrellio","description":"Google Analytics tracker","archived":false,"fork":false,"pushed_at":"2020-10-03T19:33:49.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-13T15:31:51.912Z","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/umbrellio.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-15T13:40:52.000Z","updated_at":"2020-10-03T19:25:43.000Z","dependencies_parsed_at":"2023-07-24T13:01:29.069Z","dependency_job_id":null,"html_url":"https://github.com/umbrellio/ga-tracker","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/umbrellio/ga-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fga-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fga-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fga-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fga-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umbrellio","download_url":"https://codeload.github.com/umbrellio/ga-tracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fga-tracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34538220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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-11-09T06:25:26.496Z","updated_at":"2026-06-19T15:33:01.572Z","avatar_url":"https://github.com/umbrellio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @umbrellio/ga-tracker\n\n[![Coverage Status](https://coveralls.io/repos/github/umbrellio/ga-tracker/badge.svg?branch=master)](https://coveralls.io/github/umbrellio/ga-tracker?branch=master)\n[![Build Status](https://travis-ci.com/umbrellio/ga-tracker.svg?branch=master)](https://travis-ci.com/umbrellio/ga-tracker)\n\nGoogle Analytics tracker for web env (no `window` object required).\n\n## Install\n\n```sh\n$ yarn add @umbrellio/ga-tracker\n```\n\n## Usage\n\n```js\nimport GATracker from \"@umbrellio/ga-tracker\"\n\nconst tracker = GATracker.create(trackingId)\n\ntracker.pageview({ dp: \"/contacts\", dt: \"Contacts\" })\n```\n\nWhere `trackingId` is your app tracking id (like `UA-XXXXXXXXX-X`).\n\nAvailable methods:\n\n- `set(key, value)` – set any global var (like [user params](https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#user))\n\n- `pageview({ dl, dh, dp, dt })` – track page viewing ([Docs](https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#content))\n\n- `timing({ utc, utv, utt, utl })` – track custom timings ([Docs](https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#timing))\n\n## Errors\n\n#### NetworkError\n\n```js\nimport GATracker from \"@umbrellio/ga-tracker\"\n\nGATracker.Errors.NetworkError\n```\n\nThrows when there was an error while sending a http request.\n\n#### ConnectionError\n\n```js\nimport GATracker from \"@umbrellio/ga-tracker\"\n\nGATracker.Errors.ConnectionError\n```\n\nThrows when unable to send a http request.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/umbrellio/ga-tracker.\n\n## License\n\nReleased under MIT License.\n\n## Authors\n\nCreated by [Aleksei Bespalov](https://github.com/nulldef),\n\n\u003ca href=\"https://github.com/umbrellio/\"\u003e\n\u003cimg style=\"float: left;\" src=\"https://umbrellio.github.io/Umbrellio/supported_by_umbrellio.svg\" alt=\"Supported by Umbrellio\" width=\"439\" height=\"72\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Fga-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumbrellio%2Fga-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Fga-tracker/lists"}