{"id":18973550,"url":"https://github.com/anishmprasad/react-segment","last_synced_at":"2025-08-05T02:19:22.200Z","repository":{"id":37819903,"uuid":"98173514","full_name":"anishmprasad/react-segment","owner":"anishmprasad","description":"Segment integration for react","archived":false,"fork":false,"pushed_at":"2022-12-31T18:17:43.000Z","size":28,"stargazers_count":9,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T10:12:16.570Z","etag":null,"topics":["analytics","analytics-tracking","react","segment","segmentio"],"latest_commit_sha":null,"homepage":"","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/anishmprasad.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":"2017-07-24T09:28:40.000Z","updated_at":"2022-12-04T20:42:17.000Z","dependencies_parsed_at":"2023-01-31T19:45:43.343Z","dependency_job_id":null,"html_url":"https://github.com/anishmprasad/react-segment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishmprasad%2Freact-segment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishmprasad%2Freact-segment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishmprasad%2Freact-segment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishmprasad%2Freact-segment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anishmprasad","download_url":"https://codeload.github.com/anishmprasad/react-segment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249223935,"owners_count":21232833,"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":["analytics","analytics-tracking","react","segment","segmentio"],"created_at":"2024-11-08T15:12:29.188Z","updated_at":"2025-04-16T09:33:38.018Z","avatar_url":"https://github.com/anishmprasad.png","language":"JavaScript","readme":"# react-segment\nSegment.io integration for React.js\n\n\n### Installation\n\n```\n// with npm\n$ npm install react-segment --save\n\n// with yarn\n$ yarn add react-segment\n```\n\nGetting started\n---------------\n\nIf you're developing using npm and CommonJS modules:\n\n```jsx\nlet analytics = require('react-segment');\n\nif(process.env.NODE_ENV == 'development'){\n    analytics.default.load(\"DEVELOPMENT KEY\");\n}else if(process.env.NODE_ENV == 'staging' ){\n    analytics.default.load(\"STAGING KEY\");\n}else if(process.env.NODE_ENV == 'pre-production'){\n    analytics.default.load(\"PRE-PRODUCTION KEY\");\n}else if(process.env.NODE_ENV == 'production'){\n    analytics.default.load(\"PRODUCTION KEY\");\n}\n```\n\nDon't see your prop? explaining your use case, and I will add it.\n\n\nIssues\n------\nPlease [file an issue](https://github.com/anishmprasad/react-segment/issues) if you find a bug, or need help.\n\n\nLicense\n-------\nThe MIT License (MIT)\n\nCopyright (c) 2022 Anish M Prasad\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanishmprasad%2Freact-segment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanishmprasad%2Freact-segment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanishmprasad%2Freact-segment/lists"}