Skip to content
  • Home
  • Developers
  • API
  • Releases
  • Community
  • University
  • Status
  • Home
  • Developers
  • API
  • Releases
  • Community
  • University
  • Status
Home Definitions Snapshots Capture Screen Dimensions via Snapshots
Session Replay Getting Started Administration Data Management Definitions Charts Analysis Examples Heap Plays 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

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 Graph 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 October 18, 2022.

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

© 2023 Heap, Inc.