{"id":17938753,"url":"https://github.com/managed-components/segment","last_synced_at":"2025-03-24T09:32:25.887Z","repository":{"id":103823684,"uuid":"604276016","full_name":"managed-components/segment","owner":"managed-components","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-05T05:04:00.000Z","size":452,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-03T15:49:00.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/managed-components.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-02-20T17:55:33.000Z","updated_at":"2023-05-15T16:04:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5e20081-8a99-48d7-8bec-36f717b09f63","html_url":"https://github.com/managed-components/segment","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/managed-components%2Fsegment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managed-components%2Fsegment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managed-components%2Fsegment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managed-components%2Fsegment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/managed-components","download_url":"https://codeload.github.com/managed-components/segment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245243505,"owners_count":20583630,"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-29T00:06:22.209Z","updated_at":"2025-03-24T09:32:25.566Z","avatar_url":"https://github.com/managed-components.png","language":"TypeScript","readme":"# Segment Managed Component\n\nFind out more about Managed Components [here](https://blog.cloudflare.com/zaraz-open-source-managed-components-and-webcm/) for inspiration and motivation details.\n\n[![Released under the Apache license.](https://img.shields.io/badge/license-apache-blue.svg)](./LICENSE)\n[![PRs welcome!](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](./CONTRIBUTING.md)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![All Contributors](https://img.shields.io/github/all-contributors/managed-components/snapchat?color=ee8449\u0026style=flat-square)](#contributors)\n\n## 🚀 Quickstart local dev environment\n\n1. Make sure you're running node version \u003e=18.\n2. Install dependencies with `npm i`\n3. Run unit test watcher with `npm run test:dev`\n\n## ⚙️ Tool Settings\n\n\u003e Settings are used to configure the tool in a Component Manager config file\n\n### Segment Source Write Key `string` _required_\n\n`writeKey` - You need to create an HTTP API source, and enter the Write Key here. [Learn more](https://segment.com/docs/connections/find-writekey/)\n\n### Type `string` _required_\n\n`callType` - Options are:\n\n- Page - Record page views on your website\n- Track - Record the actions your users perform\n- Identify - Tie a user to their actions\n- Alias - Associate one identity with another identity\n- Group - Associate an individual user with a group\n\n## 🧱 Fields Description\n\n### Event Name `string` _required_\n\n`event` - Name of the action that a user has performed. See the [Event field docs](https://segment.com/docs/connections/spec/track#event) for more details.\n\n### Page Name `string`\n\n`name` - Name of the page. For example, most sites have a \"Signup\" page that can be useful to tag, so you can see users as they move through your funnel.\n\n### Anonymous ID `string`\n\n`anonymousId` - A pseudo-unique substitute for a User ID, for cases when you don’t have an absolutely unique identifier. See the [Identities docs](https://segment.com/docs/connections/spec/identify#identities) for more details.\n\n### User ID `string`\n\n`userId` - Unique identifier for the user in your database. See the [Identities docs](https://segment.com/docs/connections/spec/identify#identities) for more details.\n\n### Previous ID `string`\n\n`previousId` - The existing ID you’ve referred to the user by. It might be an Anonymous ID assigned to that user or a User ID you previously identified them with.\n\n## 📝 License\n\nLicensed under the [Apache License](./LICENSE).\n\n## 💜 Thanks\n\nThanks to everyone contributing in any manner for this repo and to everyone working on Open Source in general.\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","funding_links":[],"categories":["Managed Components"],"sub_categories":["Official Managed Components"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanaged-components%2Fsegment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanaged-components%2Fsegment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanaged-components%2Fsegment/lists"}