{"id":13422546,"url":"https://github.com/hzdg/react-google-analytics","last_synced_at":"2025-03-15T12:30:43.332Z","repository":{"id":15712025,"uuid":"18450046","full_name":"hzdg/react-google-analytics","owner":"hzdg","description":"Google analytics component","archived":false,"fork":false,"pushed_at":"2017-05-24T09:09:51.000Z","size":469,"stargazers_count":111,"open_issues_count":8,"forks_count":9,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-04-14T04:31:59.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hzdg.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-04-04T19:28:49.000Z","updated_at":"2023-08-29T05:49:03.000Z","dependencies_parsed_at":"2022-09-01T05:12:54.967Z","dependency_job_id":null,"html_url":"https://github.com/hzdg/react-google-analytics","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzdg%2Freact-google-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzdg%2Freact-google-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzdg%2Freact-google-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzdg%2Freact-google-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hzdg","download_url":"https://codeload.github.com/hzdg/react-google-analytics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243730963,"owners_count":20338747,"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-07-30T23:00:47.537Z","updated_at":"2025-03-15T12:30:43.005Z","avatar_url":"https://github.com/hzdg.png","language":"CoffeeScript","readme":"react-google-analytics\n======================\n\nAdds the Google Analytics script to your page and exposes the `ga` tracking\nfunction as a module.\n\nUsage:\n\n```javascript\nvar ga = require('react-google-analytics');\nvar GAInitiailizer = ga.Initializer;\n\n// Use the initializer to add the script to your page somewhere.\nvar MyComponent = React.createClass({\n  render: function() {\n    return (\n      \u003cdiv\u003e\n        // SNIP\n          \u003cGAInitiailizer /\u003e\n        // SNIP\n      \u003c/div\u003e\n    );\n  }\n});\n```\n\nElsewhere, use the `ga` function:\n\n```javascript\nvar ga = require('react-google-analytics');\nga('create', 'UA-XXXX-Y', 'auto');\nga('send', 'pageview');\n```\n","funding_links":[],"categories":["Utilities","Uncategorized","Awesome React"],"sub_categories":["Integrations with Third Party Services","Uncategorized","Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhzdg%2Freact-google-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhzdg%2Freact-google-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhzdg%2Freact-google-analytics/lists"}