Measure content gate
Maglr fires three analytics events when a content gate appears, when a visitor closes it, and when a visitor submits its form, so you can measure how the gate performs. You can use these events in Google Tag Manager, and you can see them in Maglr statistics when standard Maglr statistics are on for your domain.
Content gate events
A content gate on a project fires these three events. All three use the Category Interface-viewer.
Event (Action) | Fires when | Category | Label |
|---|---|---|---|
Gate-activated | The gate appears on screen | Interface-viewer | Name of form or page |
Gate-closed-manually | The visitor clicks the gate's close button | Interface-viewer | Name of form or page |
Gate-form-submitted | The visitor successfully submits the form in the gate | Interface-viewer | Name of form or page |
- Gate-activated: fires each time the gate appears. A visitor who closes the gate without submitting the form sees the gate again the next time they open the project and reach the gated page, and the event fires again. After a visitor submits the form, the gate no longer appears for them during that browser session.
- Gate-closed-manually: fires only when the content gate setting "Visitor can manually close this overlay without submission" is on, because only then can the visitor close the gate without submitting the form.
- Gate-form-submitted: fires for both gate types: Overlay with form, and Overlay micro content with a form included.
- Label: for an Overlay with form gate, the label is the form's name. For an Overlay micro content gate, the label is the micro content's page title.
Using content gate events in Google Tag Manager
When your domain uses Google Tag Manager, Maglr pushes the three content gate events (Gate-activated, Gate-closed-manually and Gate-form-submitted) to the dataLayer. Each push has the event name maglrInterfaceEvent, and the event details are in these dataLayer keys:
- maglrCategory: the Category,
Interface-viewer. - maglrAction: the event, for example
Gate-activated. - maglrLabel: the form name or page title of the gate.
- maglrValue: for Gate-form-submitted on a gate with a form, the form's hash.
To see the content gate events in Google Analytics 4, set up a trigger and a GA4 event tag for them in Google Tag Manager.
Events are not sent from a preview. Test them on the live project.
To connect Google Tag Manager to your domain, see Integrate Google Tag Manager.
Viewing content gate events in Maglr statistics
When "Activate standard Maglr statistics" is on in your domain settings (it is on by default), content gate events also appear in Maglr statistics, under "Events overview". To see them:
- In the top menu, open
Settingsand selectStatistics. - Scroll down to "Events overview".
- Under Category, click
Menu (interface). - Under Action, click
Gate activatedorForm submitted.
The Label column then lists each gate by form name or page title, with the number of events and the number of visitors.
If Statistics isn't in your Settings menu, Maglr statistics isn't included in your account or isn't available for your user role.
Updated on: 26/10/2026