Skip to main content

How to Create Custom Reports in GA4 using Mida's Data

Mida sends your experiment data to Google Analytics 4. This guide shows how to turn it into a report that compares your variants, using any GA4 metric you like.

It works on every Mida plan, including Free.

Before you start

  • GA4 is switched on in Mida. If not, follow Integrate Mida with GA4 first.

  • Your experiment is live and has had visitors.

  • You can edit the GA4 property (Editor role or above). You need it for Step 1.

What Mida sends to GA4

Mida sends three events:

  • mida_pageview: every page a visitor views after they have seen a variant, on any page of your site. Use it to count the people in each variant.

  • mida_execute: only when the experiment runs on the page. Use it when you only care about the test page itself.

  • mida_conversion: when a visitor converts on the experiment's primary goal.

Every event carries the same five details:

  • id: the experiment ID

  • name: the experiment name

  • variant: Control, Variant 1, Variant 2 and so on

  • uuid: Mida's ID for the visitor (not the variant). The same visitor keeps the same ID

  • timestamp: when the event happened (Unix time)

Where is my experiment ID? Open the experiment in Mida and look at the address bar. In https://app.mida.so/experiment/13379/results the ID is 13379.

Step 1: Tell GA4 about the Mida details (one time)

GA4 receives id, variant and uuid straight away, but it hides them from reports until you register each one as a custom dimension. This is the step most people miss.

  1. In GA4, go to Admin > Data display > Custom definitions.

  2. Click Create custom dimension.

  3. Fill it in like this, then click Save:
    Dimension name: id
    Scope: Event
    Event parameter: id

  4. Do the same for variant and uuid.

When you are done it should look like this:

Get these three things right:

  • Type the event parameter exactly, in lowercase: id, variant, uuid. A capital letter or a space means GA4 finds nothing.

  • Scope must be Event, not User.

  • GA4 only fills these in from today onwards. Visits from before you registered them will never show up. So do this step as soon as you connect GA4, before you need the report.

After saving, give GA4 24 to 48 hours before the values appear in reports.

Step 2: Quick report - people and conversions per variant

This is the fastest way to see your experiment in GA4. No segments needed.

  1. Go to Explore and open a Blank exploration.

  2. Next to Dimensions, click +. Tick Event name, and under Custom tick id and variant. Click Import.

  3. Next to Metrics, click +. Tick Total users. Click Import.

  4. Drag variant to Rows.

  5. Drag Event name to Columns.

  6. Drag Total users to Values.

  7. Under Filters, choose id, pick exactly matches, and enter your experiment ID.

  8. Set the date range at the top left to cover your experiment's dates.

You now have one row per variant:

  • The mida_pageview column is the number of people in that variant.

  • The mida_conversion column is the number of people who converted.

Divide the second by the first to get each variant's conversion rate.

Step 3: Go deeper with segments

The quick report only counts Mida's own events. To see what the people in each variant did elsewhere in GA4 (purchases, revenue, engagement, where they came from), build a segment for each variant. A segment follows those people across everything GA4 knows about them.

Create a segment for each variant

1. Head to the Explore tab on the left panel.

2. Click on the Blank exploration.

3. Click on Segments.

4. Click Create a new segment.

5. Choose User segment.

6. Click Add new condition and type mida in the search box. Pick mida_pageview. We start with everyone in the Control.

7. Click Add parameter, search for id and select your experiment ID from the list.

8. Click Add parameter again, search for variant and select Control. Name the segment (for example "Control - all") and click Apply.

9. Now the people who converted in the Control. Hover over the segment, click the three dots, and choose Duplicate. Change the event to mida_conversion, rename it (for example "Control - converted") and click Apply.

10. Duplicate both segments and change variant to Variant 1. You now have four segments. Repeat for each extra variant.

Add the numbers you care about

1. Click on Metrics.

2. Open Users and tick Total users, then click Confirm. Add any other metric you want here too, such as purchases, revenue or engagement rate.

3. Drag your four segments to Segment comparisons and drag Total users to Values.

In the example above, 120 is the number of people in the Control and 11 is how many of them converted. The same goes for the variation.

From here, add any GA4 metric or dimension (revenue, first user source, device) to compare the variants on it.

Something not right?

I can't find id or variant in GA4.

  • Check Step 1. They only appear after you register them as custom dimensions.

  • Check the spelling and that Scope is Event.

  • Wait 24 to 48 hours after registering.

My experiment ID is not in the list.

  • The experiment needs visitors after the day you registered the custom dimensions.

  • Reports only go up to yesterday. A test launched today shows tomorrow.

  • Open the experiment in Mida, go to Configuration, and check that the GA4 integration is on. It is on by default for new experiments once GA4 is connected.

The numbers stop before my test started, or start late.

  • Match the GA4 date range to your experiment's live dates. Remember GA4 has nothing from before Step 1.

GA4 and Mida show different numbers.

I see a row called "(other)" or some rows are missing.

  • GA4 groups very long lists and hides very small groups to protect privacy. This mostly happens when you break a report down by uuid. Stick to id and variant for reports.

Did this answer your question?