Data Hero rules
Group sessions into custom map tiles before standard channel classification. First matching rule wins.
Rules match against Google Analytics 4 session dimensions from the standard Data API — MarStack does not read utm_* parameters from landing URLs directly.
Each condition compares your value to what GA4 has already stored on the session:
- Session source — GA4
sessionSource(often fromutm_source, but GA may use its own default) - Session medium — GA4
sessionMedium(often fromutm_medium) - Campaign — GA4
sessionCampaignName(often fromutm_campaign, but can also come from Google Ads auto-tagging or show as(not set)) - Channel group — GA4 default channel group (e.g. Paid Search, Email)
- Landing page (+ query) — first landing page path in the session
- Referring page URL — referrer on the hit
To sanity-check a rule, open Explore in GA4, add the same dimension (e.g. Session campaign), and filter to your value. Totals should align with your date range and metric on Data Hero.
Your saved sets
No saved bucket sets yet. Save your current rules above.
Bucket rules
No rules yet. Add a rule to get started.