Create custom selections with Google Analytics
To see Google Analytics 4 (GA4) data for one domain or one Maglr project, filter your GA4 reports on the hostname or the page path. GA4 records a page view each time a visitor opens a page of a live project (when your cookie consent settings allow it), so each domain and each project can be picked out by its address.
Before you start, connect Google Analytics to your domain by adding your GA4 code under Google Analytics or GTM. GA4 only receives data from the moment the code is added.
How Maglr addresses appear in GA4
Every page of a live project, except Micro content projects, has its own address: <your domain>/<Project URL>/<page URL>, for example magazine.example.com/spring-2026/introduction. In GA4 that address is split into two dimensions you can filter on:
- Hostname: your domain, for example
magazine.example.com. Filter on it to see one domain. - Page path and screen class: the part after the domain, for example
/spring-2026/introduction. Every page of a project starts with/<Project URL>/, so filter on that to see one project.
You find the Project URL in the Maglr dashboard, in the project's Project settings on the Basic information tab. It is built automatically from the domain and the project title, unless you edited it.
Micro content projects have no Project URL. Each of their pages has a one-part address directly after the domain, for example /spring-offer. To see one of these pages, compare on Page path and screen class with the match type exactly matches and that path.
Viewing Google Analytics data for one domain
Use this when your GA4 property receives data from more than one domain and you want to see only one of them. The steps below are in Google Analytics, not in Maglr.
- Open a report in Google Analytics, for example the Pages and screens report under Engagement.
- Click the comparison icon at the top right of the report.
- Click
+ Create new. - Under
Dimension, chooseHostname. - Under
Match Type, chooseexactly matches. - Select or type your domain, for example
magazine.example.com. - Click
Apply.
The report now shows the data for that domain next to the data for all domains. For more on comparisons, see Google's help on comparisons.
Viewing Google Analytics data for one project
To see the data for one Maglr project, compare on the page path that starts with the project's Project URL. The steps below are in Google Analytics, not in Maglr.
- Open a report in Google Analytics, for example the Pages and screens report under Engagement.
- Click the comparison icon at the top right of the report.
- Click
+ Create new. - Under
Dimension, choosePage path and screen class. - Under
Match Type, choosecontains. - Type a slash, your Project URL and another slash, for example
/spring-2026/. The slashes make sure a project calledspringdoesn't also matchspring-2026. The match is case-sensitive, so type the Project URL exactly as it appears in Maglr. - Click
Apply.
If the same Project URL is used on more than one of your domains, add a second condition with + Add new condition: choose Hostname and select the domain.
Including an old Project URL
If you changed a project's Project URL, the data from before the change is recorded under the old address. To see both in a GA4 comparison, enter the old and the new Project URL as two values in the Page path and screen class condition, for example /spring-2026/ and /spring/. GA4 shows pages that match either value.
Saving a selection as a segment
To reuse a selection in deeper analysis, create a segment in Explore, GA4's area for custom reports. In an exploration, click the + next to Segments and add a condition on Hostname or on Page path and screen class, with the same values as above. Segments work only in Explore, not in the standard reports. For the full steps, see Google's help article Segment builder.
Frequently asked questions
Why don't I see Audience, Behaviour or Acquisition in Google Analytics?
Audience, Behaviour and Acquisition are menus from Universal Analytics, the previous version of Google Analytics, which Google has shut down. In Google Analytics 4 you find similar information under Reports: Realtime for current visitors, Engagement for the most viewed pages, Acquisition for where visitors come from, and User for country, language and device details. You can filter all of these reports on one domain or one Maglr project with a comparison.
Why don't my own preview views show up in Google Analytics?
Maglr doesn't send views of a project's preview in the dashboard to Google Analytics. Only visits to the live, published project are measured.
Can I see data from before I connected Google Analytics?
No. Google Analytics only receives data from the moment your GA4 code is added to the domain in Maglr. Earlier visits are not sent to Google Analytics. Maglr's standard statistics are measured separately and appear in the Maglr dashboard.
Updated on: 27/10/2026