The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"createdAt": "2021-03-24T13:20:07.626Z",
"updatedAt": "2021-03-24T13:33:51.181Z",
"id": "150",
"name": "PostHog:Event:create:Identity:create:Alias:create:Track:page screen",
"active": false,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
250,
300
],
"id": "74887071-8225-4c30-8b67-c3bc2cbbbb3c"
},
{
"parameters": {
"eventName": "=Event{{Date.now()}}",
"distinctId": "={{Date.now()}}",
"additionalFields": {
"propertiesUi": {
"propertyValues": [
{
"key": "name",
"value": "test"
}
]
},
"timestamp": "={{(new Date()).toISOString()}}"
}
},
"name": "PostHog",
"type": "n8n-nodes-base.postHog",
"typeVersion": 1,
"position": [
500,
150
],
"credentials": {
"postHogApi": {
"name": "<your credential>"
}
},
"id": "73600be8-3dde-4dea-a1d0-cea020c02acf"
},
{
"parameters": {
"resource": "identity",
"distinctId": "={{Date.now()}}",
"additionalFields": {
"propertiesUi": {
"propertyValues": [
{
"key": "name",
"value": "identity test"
},
{
"key": "email",
"value": "=fake{{Date.now()}}@gmail.com"
}
]
},
"timestamp": "={{Date.now()}}"
}
},
"name": "PostHog1",
"type": "n8n-nodes-base.postHog",
"typeVersion": 1,
"position": [
500,
300
],
"credentials": {
"postHogApi": {
"name": "<your credential>"
}
},
"id": "dd146375-b44f-445a-a2a4-fbaeb9028b0c"
},
{
"parameters": {
"resource": "alias",
"alias": "=Alias{{Date.now()}}",
"distinctId": "={{Date.now()}}",
"additionalFields": {
"contextUi": {
"contextValues": [
{
"key": "name",
"value": "Aliastest"
}
]
},
"timestamp": "={{Date.now()}}"
}
},
"name": "PostHog2",
"type": "n8n-nodes-base.postHog",
"typeVersion": 1,
"position": [
500,
450
],
"credentials": {
"postHogApi": {
"name": "<your credential>"
}
},
"id": "cb1f2644-f1a7-46b0-950e-de720819b2b7"
},
{
"parameters": {
"resource": "track",
"name": "=TrackPage{{Date.now()}}",
"distinctId": "={{Date.now()}}",
"additionalFields": {
"category": "landing",
"timestamp": "={{Date.now()}}"
}
},
"name": "PostHog3",
"type": "n8n-nodes-base.postHog",
"typeVersion": 1,
"position": [
500,
600
],
"credentials": {
"postHogApi": {
"name": "<your credential>"
}
},
"id": "88973d09-036b-41c3-a24c-d799ef0354e2"
},
{
"parameters": {
"resource": "track",
"operation": "screen",
"name": "=TrackScreen{{Date.now()}}",
"distinctId": "={{Date.now()}}",
"additionalFields": {
"category": "registration",
"timestamp": "={{Date.now()}}"
}
},
"name": "PostHog4",
"type": "n8n-nodes-base.postHog",
"typeVersion": 1,
"position": [
650,
600
],
"credentials": {
"postHogApi": {
"name": "<your credential>"
}
},
"id": "2677f5a4-9a15-41f2-a8c0-ea42f269f57b"
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "PostHog",
"type": "main",
"index": 0
},
{
"node": "PostHog1",
"type": "main",
"index": 0
},
{
"node": "PostHog2",
"type": "main",
"index": 0
},
{
"node": "PostHog3",
"type": "main",
"index": 0
}
]
]
},
"PostHog3": {
"main": [
[
{
"node": "PostHog4",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {},
"staticData": null,
"meta": null,
"versionId": null,
"triggerCount": 0,
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
postHogApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
PostHog:Event:create:Identity:create:Alias:create:Track:page screen. Uses start, postHog. Manual trigger; 6 nodes.
Source: https://github.com/n8n-io/test-workflows/blob/b37961bd0e1f34e1bffb4be4a345c08ede317689/workflows/150.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This n8n template demonstrates how to identify new queries in Google Search Console that had no impressions in the past but appeared for the first time in the last 7 days. It also segments them into t
Demio:Event:getAll get register:Report:get. Uses start, demio. Manual trigger; 5 nodes.
This n8n template helps you detect page cannibalization in Google Search Console (GSC): situations where multiple pages on your site rank for the same query and more than one page gets clicks. Use it