Segment Managed Component
Find out more about Managed Components here for inspiration and motivation details.
🚀 Quickstart local dev environment
- Make sure you're running node version >=18.
- Install dependencies with
npm i
- Run unit test watcher with
npm run test:dev
⚙️ Tool Settings
Settings are used to configure the tool in a Component Manager config file
string
required
Segment Source Write Key writeKey
- You need to create an HTTP API source, and enter the Write Key here. Learn more
string
required
Type callType
- Options are:
- Page - Record page views on your website
- Track - Record the actions your users perform
- Identify - Tie a user to their actions
- Alias - Associate one identity with another identity
- Group - Associate an individual user with a group
🧱 Fields Description
string
required
Event Name event
- Name of the action that a user has performed. See the Event field docs for more details.
string
Page Name 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.
string
Anonymous ID anonymousId
- A pseudo-unique substitute for a User ID, for cases when you don’t have an absolutely unique identifier. See the Identities docs for more details.
string
User ID userId
- Unique identifier for the user in your database. See the Identities docs for more details.
string
Previous ID 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.
📝 License
Licensed under the Apache License.
💜 Thanks
Thanks to everyone contributing in any manner for this repo and to everyone working on Open Source in general.
✨
Contributors Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!