{"id":15569441,"url":"https://github.com/dwolfhub/angular-ga-tracking","last_synced_at":"2025-12-28T04:10:09.794Z","repository":{"id":15052722,"uuid":"17778846","full_name":"dwolfhub/angular-ga-tracking","owner":"dwolfhub","description":"Angular Directives for Google Analytics Tracking","archived":false,"fork":false,"pushed_at":"2014-03-15T16:22:11.000Z","size":123,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T06:44:07.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"RocketChat/Rocket.Chat","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwolfhub.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}},"created_at":"2014-03-15T15:46:19.000Z","updated_at":"2023-04-13T14:27:02.000Z","dependencies_parsed_at":"2022-08-30T05:11:14.935Z","dependency_job_id":null,"html_url":"https://github.com/dwolfhub/angular-ga-tracking","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwolfhub%2Fangular-ga-tracking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwolfhub%2Fangular-ga-tracking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwolfhub%2Fangular-ga-tracking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwolfhub%2Fangular-ga-tracking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwolfhub","download_url":"https://codeload.github.com/dwolfhub/angular-ga-tracking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243223879,"owners_count":20256596,"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":[],"created_at":"2024-10-02T17:28:51.584Z","updated_at":"2025-12-28T04:10:09.738Z","avatar_url":"https://github.com/dwolfhub.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"angular-ga-tracking\n===================\n\nAngular Directives for Google Analytics Tracking\n\n## Usage\n\n### Including the module\n\n```javascript\nvar app = angular.module(\"app\", [\"ga.tracker\"]);\n```\n\n### Use the directives\n\n#### Tracking Page Views\n\nWhen the directive is used, it registers a page view at the current $location.path();. I like to add it once in each of my templates.\n\n```html\n\u003cdiv class=\"home-template\" ga-pageview tracking-id=\"XX-XXXXXXXX-XX\"\u003e\n```\n\n#### Tracking Events (clicks)\n\nWhen you add the diretive to an HTML element and that element is clicked, the event will be registered with GA.\n\n```html\n\u003ca href=\"/#/prizes\" ga-event event-name=\"some event\" event-value=\"some value\" tracking-id=\"XX-XXXXXXXX-XX\"\u003eSubmit Event!\u003c/a\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwolfhub%2Fangular-ga-tracking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwolfhub%2Fangular-ga-tracking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwolfhub%2Fangular-ga-tracking/lists"}