Hey there Bubble users!
I’ve got some exciting news for you all. I just built a plugin that allows you to seamlessly integrate PostHog into your app in just a matter of minutes!
If you’re not familiar with PostHog, it’s a powerful analytics tool that helps you gain a better understanding of your users.
With PostHog, you can easily track user behavior, optimize your app for growth, and gain valuable insights into how your users interact with your product.
One of the coolest features of PostHog is the screen recording feature.
It’s like having a window into your user’s minds! You can see what they click, scroll, type, and more. This can help you identify usability issues, bugs, or opportunities for improvement.
With this plugin, you’ll be able to do so much more.
Identify users
PostHog allows you to identify your users with an ID of your choice. This enables PostHog to associate events with a specific user, track them on different platforms, and connect events from before and after they log in for the first time.
Set user properties
In addition to adding extra data to specific events like we discussed earlier, it’s also very common to want to also set properties on users as well.
Tracking properties on users becomes incredibly useful when we start creating insights, which we’ll cover in the next guide.
This propeties always overrides, if set ‘One Time’ to true, only writes when the property doesn’t already exist on the user.
Use multiple IDs for users
If you use multiple distinct IDs for the same user (e.g. a logical ID and a UUID), you may want to set both for the same user. This way, if PostHog receives events for either ID, it will properly match them to the same person.
Create custom events
This allows you to send more context than the default event info that PostHog captures whenever a user does something. In that case, you can send an event with any metadata you may wish to add.
Use super properties
Super Properties are properties associated with events that are set once and then sent with every capture
call
Furthermore, if you register the same property multiple times, the next event will use the new value of that property. If you want to register a property only once (e.g. for ad campaign properties) you can change ‘One Time’ to true.
Setting Super Properties creates a cookie on the client with the respective properties and their values. In order to stop sending a Super Property with events and remove the cookie, you can use PH Super Properties Remove
.
Track SPA pageviews
If you have a one-page app, that means it’ll only send a pageview once, when your app loads.
To make sure any navigating a user does within your app gets captured, you can make a pageview call manually.
and much more!
How to use?
Using the plugin is a breeze. All you need to do is create a PostHog account (which comes with a generous free plan), enter your API key in the plugin settings, and you’re good to go!
PostHog will take care of most events and specifications, so you don’t need to worry about any further settings.
You can start exploring the many features available on the PostHog platform.
If you need to customize PostHog further, you can use the plugin actions in any workflow to send events to PostHog. You can also exclude your team members from being tracked if you want.
You can find the plugin here:
And if you don’t have a PostHog account yet, you can create one for free here:
PostHog - The open source Product OS
Trust me, PostHog is an amazing tool that can help take your Bubble app to the next level.
If you have any questions or feedback about the plugin, feel free to leave a comment below or contact me directly.