# PostHog

## 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.optibase.io/integrations/posthog.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
