{"id":22092242,"url":"https://github.com/pirxpilot/ga-event","last_synced_at":"2026-06-11T16:31:27.933Z","repository":{"id":12405592,"uuid":"15059078","full_name":"pirxpilot/ga-event","owner":"pirxpilot","description":"Google Analytics component with event tracking","archived":false,"fork":false,"pushed_at":"2017-02-23T09:09:45.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T23:45:46.495Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pirxpilot.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-09T21:07:34.000Z","updated_at":"2019-12-04T23:35:56.000Z","dependencies_parsed_at":"2022-07-21T12:48:12.024Z","dependency_job_id":null,"html_url":"https://github.com/pirxpilot/ga-event","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pirxpilot/ga-event","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fga-event","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fga-event/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fga-event/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fga-event/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pirxpilot","download_url":"https://codeload.github.com/pirxpilot/ga-event/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fga-event/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34208762,"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-11T02:00:06.485Z","response_time":57,"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-12-01T03:08:51.600Z","updated_at":"2026-06-11T16:31:27.913Z","avatar_url":"https://github.com/pirxpilot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ga\n\n  Google Analytics event tracking\n  Use instead of `ga` component to track pages *and* events\n\n## Installation\n\n    TBD\n\n## API\n\nActivate Google Analytics on the page and track page\n\n    require('ga')(\"UA-XXXX-X\");\n\nAlternatively you can define GA property ID as a data attribute of document body\n\n  \t\u003cbody data-ga-property-id=\"UA-XXXX-X\"\u003e\n\n\nYou can [track events][1] by declaring event properties in HTML\n\n    \u003ca href=\"/link\"\n      data-ga-category=\"Videos\"\n      data-ga-action=\"Play\"\n      data-ga-label=\"Baby's First Birthday\" \u003e\n      Click here\n    \u003c/a\u003e\n\nYou only need to set `ga-category`. `ga-action` defaults to `click` and `ga-label`, `ga-value`, and\n`ga-noninteractive` are all optional in Google Analytics.\n\n`ga-event` registers DOM event handler that will generate `trackEvent` call whenever item is clicked.\n\nCheck [test/index.html] for example.\n\n## License\n\n  MIT\n\n[test/index.html]: https://github.com/pirxpilot/ga-event/blob/master/test/index.html\n[1]: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirxpilot%2Fga-event","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpirxpilot%2Fga-event","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirxpilot%2Fga-event/lists"}