Can I capture Screen Resolution?

I’m interested in understanding what screen resolution my users are using when they experience my application. Does Pendo track this?



  • You can use track events to send this information to Pendo.  With track events you can capture the screen size from your visitors and include it as a property on the event sent to Pendo.  For more information on track events in Pendo including how to set them up you can take a look at our knowledge base article here:


    An alternative option would be to pass this information in as Visitor metadata. You could evaluate the current browser resolution using JavaScript and pass it to the Pendo snippet as a metadata field which could then be used in segmentation.

  • I am looking to do the same. Angus, any chance could you please confirm if this method of tracking events was successful? It would be of great help to me and my team.

    Thank you in advance.

  • Hey Frank Suarez-Milan, I haven't personally tried it yet but the two solutions above have different use cases:

    1. Using Track Events allows you to see a log of all the visits and you can create a track event for all the screen sizes used. (This is assuming your team is able to capture this info and push it to Pendo via a track event.)

    2. Using the visitor metadata passed through JS would only track the most recent screen used. (Since the metadata would get updated and overwritten if the screen sizes change).

    3. Alternatively, here's another option we found. This is a poll that is designed to get your customers resolution at the time that this guide activates for them

  • This is great Angus! Thank you for the quick reply. I'll forward this over to the team and report back which option we end up going with.

  • Thanks for the link to the poll that captures screen size, Angus Yang!  That's exactly what I was looking for.

  • I would really like screen resolution to be captured automatically like Google Analytics. Track events required development and we purchased Pendo due to its DIY capabilities. Is there a feature request I can upvote for this?

  • Erin W here's the related feature request if you want to upvote it!

  • Angus Yang I just saw the Poll above that captures window height/width. I just added these as event properties to a few highly used events. That is genius, thanks for the tip!!! 

  • I have had a similar request I used a hidden guide step to capture the resolution, screen + browser width and heights, color depth.  But agree if you have access to code that Track Event is the better way to go. 

    You will need to add this javascript as a code block to the hidden guide, it will load and capture the data and store it in a pendo poll text box and automatically move to next guide step, users don't even see this step. 


    ---- Code Block ----




    var url = window.location.href;

    var txt = "";

    txt += "\nScreen Resolution: \nWidth " + screen.width + " and Height " + screen.height ;

    txt += "\nBrowser Window: \nWidth : " + screen.availWidth + " and Height " + screen.availHeight;

    txt += "\nColor depth: " + screen.colorDepth;

    txt += "\nColor resolution: " + screen.pixelDepth;

    document.getElementById("pendo-textarea-48168e34").value= url + txt;  // change this pendo-textarea to yours

    document.getElementById("pendo-button-0b96d652").click() // change this pendo-button to yours

    ----- example result  -----


Please sign in to leave a comment.

Didn't find what you were looking for?

New post