Skip to content

joepavitt/node-red-contrib-posthog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostHog Integration for Node-RED

A set of work-in-progress Node-RED nodes to enable event genration and updating of Person attributes in PostHog.

Capture

posthog.capture() - docs

Run PostHog's capture() via the "Capture" node. Node-RED makes it easy to set the timestamp, event, distinctID and properties via set values, or configurable through incoming msg. values.

Screenshot 2023-03-26 at 12 15 35

Identify

posthog.identify() - docs

Identify lets you add metadata to your users so you can easily identify who they are in PostHog, as well as do things like segment users by these properties.

An identify call requires:

  • distinctId – a distinct ID belonging to the user
  • properties – a user properties object

Screenshot 2023-04-06 at 08 52 34

Group

posthog.groupIdentify() - docs

Group analytics allows you to associate an event with a group (e.g. teams, organizations, etc.).

Screenshot 2023-04-06 at 08 50 58