PostHog
PostHog is an open-source product analytics platform. With the PostHog integration, you can track custom events and user behavior in your Glide app.
Don't see the PostHog integration?
You may need to upgrade your plan. Browse Glide’s plans and find the right fit for you.
Adding and Configuring the Action
To use the PostHog integration, you’ll first need to set up a PostHog account. Once you have a project API key, you can connect the project in Glide.
Find the Integrations section and select PostHog.
You will need your PostHog project’s Project API Key to track events. You can find it in your PostHog settings.
The API Host will default to https://us.i.posthog.com, but depending on your PostHog region, you may need to change this. Your correct API Host can be found in your settings tab.
Track Event
The Track Event action allows you to send custom events to PostHog when users interact with your app.
The action can be added to a Component that supports Actions (e.g., a Button component), added to a workflow in the Workflow Editor, or after a Form is submitted.
Analytics Events Only Work in Live Apps
Tracking custom events only works in live apps when triggered by a user. Note that when testing in the Glide builder, the action will not track data.
Layout Editor
Workflow Editor
Frequently Asked Questions
Don't see the PostHog integration?
You may need to upgrade your plan. Browse Glide’s plans and find the right fit for you.
I ran the Track custom event action in the Layout Editor and the Action Editor, but I do not see any events in PostHog. What's wrong?
The Track custom event action will only fire when you open your published app in a browser.