0

We have e-commerce web application. There are lots of products listed. (When we search with space in search box, and press search button, all products are listed) For each product , I want to get Product detail page and detect page size for each url of product.

This is other subject , In fact I just need to get page size in spesific URL programmatically.

Page Size to be detected in chrome

ozziem
  • 155
  • 3
  • 12
  • If you are looking to get window heights and widths, you could create parameters and pass that data along to GA as a custom dimension. Here is something that might be useful: https://stackoverflow.com/questions/3437786/get-the-size-of-the-screen-current-web-page-and-browser-window – A_Patterson Aug 22 '22 at 20:20
  • I am not looking for window height or width. – ozziem Aug 23 '22 at 09:48
  • My bad, I read page size as window size; not how many MBs it is. Looking around the web at this, there appears to be some APIs that might be available to get this information. However, trying through console for me didn't work. Researching PerformanceResourceTiming.transferSize might prove beneficial: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/transferSize – A_Patterson Aug 23 '22 at 11:10
  • Thansk for your answers, it should be from server-side – ozziem Aug 23 '22 at 11:13

0 Answers0