{"id":23045425,"url":"https://github.com/mykeels/ga-click","last_synced_at":"2025-08-14T23:31:55.324Z","repository":{"id":93601994,"uuid":"85881910","full_name":"mykeels/ga-click","owner":"mykeels","description":"An alternative to embedding JavaScript in your HTML via `onclick` attributes when working with Google Analytics","archived":false,"fork":false,"pushed_at":"2017-03-22T22:29:32.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T03:12:12.288Z","etag":null,"topics":["alternative","events","google-analytics","onclick"],"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/mykeels.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":"2017-03-22T22:22:58.000Z","updated_at":"2024-07-11T17:42:30.000Z","dependencies_parsed_at":"2023-03-11T23:46:46.063Z","dependency_job_id":null,"html_url":"https://github.com/mykeels/ga-click","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mykeels/ga-click","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Fga-click","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Fga-click/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Fga-click/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Fga-click/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mykeels","download_url":"https://codeload.github.com/mykeels/ga-click/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Fga-click/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270500001,"owners_count":24595150,"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-14T02:00:10.309Z","response_time":75,"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":["alternative","events","google-analytics","onclick"],"created_at":"2024-12-15T21:20:33.055Z","updated_at":"2025-08-14T23:31:55.315Z","avatar_url":"https://github.com/mykeels.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ga-Click\n\nAn alternative to embedding JavaScript in your HTML via `onclick` attributes when working with Google Analytics. Click [here](https://mykeels.github.io/ga-click/) to see demo.\n\n## Getting started\n\nClone this repository.\n\nAdd to and Edit the demo event objects in the `EVENTS` dictionary object in the ga-click.js file.\n\nEach item in the EVENTS object has a Key which is a string that should be in camelCase, and a Value which is an object containing the following properties:\n\n- Label: A string that describes the GA Event to be tracked.\n- Action: A function that executes the corresponding GA Command.\n\nAdd a reference of your resultant script to your web page!\n\nOn each element you need to track add a `ga-click` attribute, and the Label of the event you intend that element to represent. E.g. I could add `ga-click='liked'` to my Like button.\n\nExecute your web page.\n\nYou now have the power of Google Analytics without the headaches that inline JavaScript brings.\n\nEnjoy!\n\n### Author(s)\n\n- Ikechi Michael I.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmykeels%2Fga-click","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmykeels%2Fga-click","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmykeels%2Fga-click/lists"}