This is a PostHog plugin for passing events to the Loops app.
This plugin handles two types of actions:
When detect a normal event, we will simply send the event to Loops. All custom properties will be included in the event.
When we detect an identify, we will also send the event to Loops, but also include contact properties. If the user does not exist, it will be created, otherwise, it will be updated.
In order to test this plugin locally, do the following:
-
Install node modules with
yarn install
-
Create a
.env
file with the following contents:
LOOPS_API_KEY=ENTER_API_KEY_HERE
Make sure to include your Loops.so API key
- Run
yarn test