Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Page Load Plugin

Avatar

Level 2

Hi,

2 part question:

  1. Currently,  using s_getLoadTime() to get page load speeds, but when I'm looking at the raw value in my e.var I'm getting instances of negative values. Curious as to how this is possible or if anyone else has seen this?
    • function s_getLoadTime(){if(!window.s_loadT){var b=new Date().getTime(),o=window.performance?performance.timing:0,a=o?o.requestStart:window.inHeadTS||0;s_loadT=a?Math.round((b-a)/100):''}return s_loadT
  2. Would it be possible to filter out pages that are being loaded from the browser cache so they don’t skew the results. Any segments that anyone has created?

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 9

Assuming you implemented it correctly, the only thing I can think of offhand that could produce negative numbers is caching issue vs.visitors who are on the move and crossing over time zones in the process - something that's not entirely uncommon.  The reason this may affect it is because the plugin gets the time locally and most mobile devices automatically update their clock when moving to a new timezone.  

As to filtering out cached pages.. afaik there is no way to do this "out-of-the-box" with Adobe Analytics, and there is nothing natively exposed to javascript to tell you this.  However, there are some tricks you can do to figure out whether or not the page was loaded from the cache. You can utilize this to set a prop or eVar and then create a segment based off that. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 9

Assuming you implemented it correctly, the only thing I can think of offhand that could produce negative numbers is caching issue vs.visitors who are on the move and crossing over time zones in the process - something that's not entirely uncommon.  The reason this may affect it is because the plugin gets the time locally and most mobile devices automatically update their clock when moving to a new timezone.  

As to filtering out cached pages.. afaik there is no way to do this "out-of-the-box" with Adobe Analytics, and there is nothing natively exposed to javascript to tell you this.  However, there are some tricks you can do to figure out whether or not the page was loaded from the cache. You can utilize this to set a prop or eVar and then create a segment based off that.