When you integrate your Mida project with GA4, Mida automatically detects the Google tag on your website and initiates data transmission. In cases of a complex GA4 setup or encountered integration issues, you have the option to manually specify the mode of Google tag installation.
Sending experiment results to GA4 works on every Mida plan, including Free.
Direct Mode
Direct mode employs the gtag() function, enabling the direct transmission of event data to GA4 without the necessity of Google Tag Manager. This mode is automatically activated when you integrate GA4 into your Mida project.
Via Google Tag Manager (GTM)
In cases where the direct mode via the gtag() function does not work for your website, or if you prefer to send events via a custom dataLayer variable name, you can integrate GA4 using this method.
By default, GTM is configured to access events from your dataLayer variable, assuming it's labeled 'dataLayer.' If you're using a different dataLayer variable name, be sure to specify it accordingly within the provided text box.
Note: If you've enabled GTM integration with the default dataLayer variable name, there's no need to enable GA4 integration via GTM separately. The GTM integration alone will suffice and synchronize events with your GA4.
Send experience_impression event
In the GA4 integration's Config tab, Send experience_impression event sends Google's recommended experience_impression event once per experiment per page load. It includes exp_variant_string, for example MIDA-1106-Variant 1 (MIDA, your test ID and the variant name), so you can build a GA4 audience for each variant.
In Direct mode, Mida sends it with gtag(). Via Google Tag Manager, Mida pushes it to your dataLayer (or the variable name you entered), so you can use it as a Custom Event trigger in GTM.
The option is on for new GA4 connections. If you connected GA4 before the option was added, tick the box to start sending it.


