Skip to main content

Scenario

Your desktop and mobile users behave differently — session lengths, engagement patterns, scroll depth, and conversion rates all vary by device. You pull device category, screen resolution, and engagement metrics from GA4, then send the behavioral breakdown to Mave for creative format recommendations. The result tells you which ad formats, content layouts, and creative dimensions to prioritize for each device segment.

Architecture

Code

Example Output

Error Handling

Hundreds of unique resolutions exist. The code aggregates by device category first, then lists top 5 resolutions per category. Group similar resolutions (e.g. 1920×1080 and 1920×1200 as “Full HD”) for cleaner analysis.
If tablet traffic is under 5% of total, consider merging tablet data with desktop for persona purposes. Modern tablets render desktop-class pages.
GA4 may report smart tv or other device categories with minimal traffic. Filter these out unless you specifically target living-room experiences.

What’s Next

GA4 Integration

Back to GA4 integration overview

Acquisition Channel × Persona Mapping

Map channel-demographic pairs to personas

Audience Demographics → Persona Creation

Create personas from GA4 demographic data

Mave Agent

Full reference for POST /api/v1/mave/chat