# Mixpanel

If you have added the Mixpanel Script Tag directly to your page's HTML, Optibase will automatically detect it and trigger an event when a Variant is shown to a user.

You do not need to connect Mixpanel to Optibase for that to happen; if you have Mixpanel set up on your website in that way, that is Optibase's default behavior.

The event that Optibase will send will have the name: `optibase_variant_shown`, and properties variantId and testId.

An example of an event you should see in Mixpanel:

<figure><img src="/files/MppayPc27FqEyENYjlIi" alt=""><figcaption></figcaption></figure>

You can then use these events to create Insights in Mixpanel to compare the behavior of visitors who saw different variants.

An example would be an Inisight setup like the one below, where we filter by a specific test ID to only see visitors who saw a specific test.

We then create a breakdown based on the variant ID.

<figure><img src="/files/mQMwEWaFLMnnvXoRegvC" alt="" width="340"><figcaption></figcaption></figure>


---

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