🦔Track conversions in PostHog
If you’re using PostHog alongside Optibase, you can easily track conversions by integrating Optibase’s data attributes into PostHog. Here’s how you can set it up:
Identify the Conversion Attribute in Optibase:
In Optibase, locate the data attribute associated with the conversion event you want to track (e.g., a button click or form submission).
Set Up the Conversion Event in PostHog:
• Navigate to Data Management in your PostHog dashboard.
• Go to Actions and create a new action to track the desired event.
• Use the HTML Selector Match option to identify elements based on the Optibase data attribute.
• For example: If Optibase assigns data-optibase-conversion="get-started" to a button, use this selector in PostHog to track clicks on that button.
Once the PostHog action is set up with the Optibase attribute, any interaction with the element will now trigger events in both Optibase and PostHog.
Test Your Setup:
• Visit the page where the conversion is set up.
• Trigger the action (e.g., click the button or submit a form).
• Check both Optibase and PostHog to ensure the events are being recorded as expected.
Last updated