Skip to content
  • Home
  • Developers
  • API
  • Releases
  • Community
  • University
  • Status
  • Home
  • Developers
  • API
  • Releases
  • Community
  • University
  • Status
Home Data Types Snapshots Capture Screen Dimensions via Snapshots
Getting Started Session Replay Data Management Data Types Charts Chart Examples Dashboard Templates Analysis Guides Administration Integrations Heap Connect Data Privacy

Table of Contents

Was this article helpful?

Yes No

Thank you for your feedback!

Capture Screen Dimensions via Snapshots

This doc is for: Admins Architects

First time setting up a Snapshot? See our Snapshots overview guide for guidance on how to set these up.

You can capture screen dimensions to attach to a pageview event by using the JavaScript snapshot example below. We recommend attaching this event to a ‘view any page’ event, which will attach it to all pageviews.

Name: Screen Dimensions

JavaScript Snapshot: window.screen.width + ' x ' + window.screen.height

To analyze this Snapshot, set up a Usage over time chart and group by this property to make sure that your product looks good on all the most popular screen sizes. This is handy for both designers and product managers.

An example screenshot of how this would look on the Event details page in Heap can be found on the Pageview Snapshots page.

Was this article helpful?

Yes No

Thank you for your feedback!

Last updated June 26, 2023.

snapshots
  • Blog
  • Partners
  • Legal
  • Security
  • Terms
  • About
  • Careers
  • Privacy
  • Contact Us

© 2023 Heap, Inc.