- Home
- Resources
- Integrations
- Segment
Segment n8n integrationAutomate Segment with n8n.
Product data can reach Segment without touching your app's tracking code. The Segment n8n integration covers 4 operations spread over 3 resources: groups, identities, events and page views. Segment has no trigger node here, so the workflow starts elsewhere and finishes in Segment.
Verified Trustpilot reviews · AI, automation & growth agency
What does the Segment n8n integration actually cover?
It is the Segment node shipped with n8n, pointed at a Segment source through a Write Key. Four operations sit behind three resources: add a user to a group, create an identity, track an event, track a page. Each one takes the values of the item flowing through the workflow, so any n8n step that produced data can hand it to Segment without a single line of code in your product.
Start with the signup path, because it uses two operations back to back. A form submission lands in n8n, Create an identity sends the person with the traits the form collected, then Track an event records the action itself under a name you decide. Same run, one credential, no deploy on your side.
The second pattern is account level. A B2B product creates a seat, and Add a user to a group ties that person to the account they work for, using the account identifier your own database already knows. Teams that keep an account sheet often plug Google Sheets in the same workflow so the ops side has a readable copy, and post a short line to Slack when a seat is created.
The third one is server side page views. An n8n Webhook node, a URL your backend calls, receives the hit and Track a page records it with the page name. If you already run Google Analytics or PostHog elsewhere in your stack of workflows, this is the branch where the same payload feeds several analytics nodes in one pass.
Now the honest boundary. The node exposes those 4 operations and nothing more, and the Segment API has far more surface than that. Anything outside the catalog goes through the HTTP Request node, which calls any endpoint of the API and reuses the very same credential through predefined authentication, so you do not manage a second key.
One more thing worth knowing before you build: Segment has no trigger node in n8n. A workflow about Segment always starts with something else, a Schedule Trigger running at a fixed interval, an n8n Webhook called by a third party service, or the trigger of another tool. The n8n training walks through that pattern if you are new to it.
How do you connect Segment to n8n?
- 01
Create a source in Segment
You need a Segment account first. Inside it, go to Sources, then Add Source, and add a Node.js source. That source gives you a Write Key, the value n8n authenticates with. Copy it, it is the only thing you will carry over to the other side. Segment documents the path under Locate your Write Key if the key is not where you expect.
- 02
Save the credential once in n8n
In n8n, open the Credentials menu and create a Segment credential. A credential is a stored set of secrets that n8n keeps out of the workflow itself. Segment supports one authentication method, API key, so the form asks for the Write Key you just copied. Save it, and every Segment node you add later offers this credential in its dropdown, in that workflow and in all the others.
- 03
Pick a resource, then an operation
Drop a Segment node in the workflow and choose the resource, Group, Identify or Track, then the operation under it. Map the fields to the data already in the run with an expression, n8n's syntax for reading a value off the incoming item, written
{{ $json.field }}. Run the node once with real data before you activate anything, so you see what the mapping produces.
What can the Segment node do?
The Segment node exposes 4 operations across 3 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.
Operations index
Group
1 operationAdd a user to a group
group.addWhat you see in n8n
Notes & use cases
This one attaches a user to a group in Segment, the way you tie a person to the account or team they belong to.
Key parameters
- Group ID: required, the unique identifier you recognize a group by in your own database, usually mapped from the previous step as
{{ $json.field }}. - User ID: optional, the person you are attaching to that group.
- Traits: optional, added one entry at a time through the Add Trait button.
Identify
1 operationCreate an identity
identify.createWhat you see in n8n
Notes & use cases
Creating an identity records who the person is, along with the traits you attach to them. Nothing is required here, so the operation runs on whatever you decide to map.
Key parameters
- User ID: optional, your own identifier for the person.
- Traits: optional, each trait added separately through Add Trait, which is where a name or a plan goes.
- Context: optional, filled entry by entry through Add Context.
Track
2 operationsTrack an event
track.eventWhat you see in n8n
Notes & use cases
Every action your users perform can be recorded as an event, and an event can carry properties describing it.
Key parameters
- Event: required, the name of the action a user has performed, so keep your naming stable across workflows.
- User ID: optional, who performed the action.
- Properties: optional, added one by one through Add Properties, for the detail that belongs to this action.
Track a page
track.pageWhat you see in n8n
Notes & use cases
Page views get recorded here, with optional extra information about the page being viewed. No field is mandatory, which makes it the lightest of the 4.
Key parameters
- Name: optional, the name of the page. Most sites have a Signup page worth tagging, so you can see users as they move through your funnel.
- User ID: optional, the visitor behind the view.
- Properties: optional, added through Add Properties.
Need help automating Segment with n8n?
A person reads every message.



