Google Analytics 4 (GA4) represents the latest version of Google's web analytics service, where events take center stage in data presentation.
By integrating your Mida account with GA4, you will be able to transfer event data from Mida to GA4 smoothly (data out only). This means you can analyze user engagement and website performance in-depth and generate more comprehensive reports within GA4.
Sending experiment results to GA4 works on every Mida plan, including Free. The only GA4 feature that needs the Paid plan is GA4 audience sync (using GA4 audiences for targeting).
Mida sends three types of events to GA4:
mida_pageview
This event is automatically sent whenever a visitor who has been exposed to any Mida A/B test views a page, on any page of your site. The event includes the following properties:
id: Your test ID
name: Your experiment profile name
variant: Indicates the variation name (Control / Variant 1 / Variant 2, etc.)
uuid: Mida's unique identifier for the visitor. The same visitor keeps the same ID
timestamp: Unix timestamp of when the pageview occurred
mida_execute
This event is sent only when an experiment runs on the page the visitor is viewing. Use it when you only care about the test page itself. The event includes the following properties:
id: Your test ID
name: Your experiment profile name
variant: Indicates the variation name (Control / Variant 1 / Variant 2, etc.)
uuid: Mida's unique identifier for the visitor. The same visitor keeps the same ID
timestamp: Unix timestamp of when the experiment ran occurred
mida_conversion
This event is sent whenever a visitor has converted on their primary Mida goal. The event includes the following properties:
id: Your test ID
name: Your experiment profile name
variant: Indicates the variation name (Control / Variant 1 / Variant 2, etc.)
uuid: Mida's unique identifier for the visitor. The same visitor keeps the same ID
timestamp: Unix timestamp of when the conversion occurred
Activate GA4 Integration in Mida
Note: Integrating your Mida project with GA4 is a one-time setup at the project level.
Project Level Activation
Make sure you're in the right project before enabling GA4.
Ensure BOTH Mida tracking script and GA4 code are added on your campaign or experiment page.
Go to Integration in Mida, select Google Analytics 4, and enable the connection. That's it! You have enabled GA4 integration at the project level!
Note: Mida automatically detects the Google tag on your website and starts pushing data. If you have a complex GA4 setup or encounter any issues with the integration, you can manually specify the mode of Google tag installation. Read more about the mode of Google tag installation here.
Experiment Level Activation
Note: Once GA4 is connected, the GA4 integration is turned on by default for each new experiment. It's still a good idea to double-check that it's enabled in the experiment's CONFIGURATION settings.



