Public
Like
2
Octolens-to-PostHog
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
octolensToPosthog.ts
https://charmaine--53315b3ba3444c869177784bbb93bc63.web.val.run
This Val Town webhook receives mention notifications from Octolens and forwards them to PostHog as events.
-
Set Environment Variables:
- In Val Town, add the
POSTHOG_API_KEY
environment variable with your PostHog project API key
- In Val Town, add the
-
Configure Octolens Webhook:
- Go to the Octolens notifications page
- Click "Set up a new webhook"
- Add your Val Town webhook URL (the URL of this val)
- Configure relevance level, language settings, keywords, and platforms as needed
- Test the webhook to ensure it's working properly