Is there a way to track site speed? | Community
Skip to main content
February 12, 2025
Solved

Is there a way to track site speed?

  • February 12, 2025
  • 4 replies
  • 1392 views

Hi,
I want to know if there is a way to track site speed in Adobe Analytics. I saw this question, but the Adobe plug-in: getPageLoadTime is no longer supoported, so I want to know if there's another way to track it

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jennifer_Dungan

Not really, not reliably anyway...

 

I suppose you could try creating a variable with a timestamp as soon as the Adobe Library is loaded (this will miss all the load time of your site prior to your files to start loading in), then at the Window Loaded event, get another timestamp and calculate the different between them... 

 

Unfortunately the performance metrics that the plugin leveraged have been deprecated by the browsers, so the only solutions left will be sort of "hacky"....

4 replies

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
February 13, 2025

Not really, not reliably anyway...

 

I suppose you could try creating a variable with a timestamp as soon as the Adobe Library is loaded (this will miss all the load time of your site prior to your files to start loading in), then at the Window Loaded event, get another timestamp and calculate the different between them... 

 

Unfortunately the performance metrics that the plugin leveraged have been deprecated by the browsers, so the only solutions left will be sort of "hacky"....

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 13, 2025

Hi @katia_macedaxm 

if you need detailed reports, you could play around with the Web Vitals extension, but as it also states, since the needed library is loaded through the extension itself, some measured timing data will be affected.

https://exchange.adobe.com/apps/ec/106769/web-vitals

 

This should give you some starting point at least. Bear in mind though that this data should not be sent in an individual analytics call, since this would affect your bounce rate (unlike Google, Adobe has unfortunaltely never managed to implement something similar to "non-interaction hits").

 

If you are only interested in how long a page needed to load, you could use the PerformanceTiming API that is built-in all modern browsers.

 

window.addEventListener('load', () => { const [performanceTiming] = performance.getEntriesByType('navigation'); console.log(`Page Load Time: ${performanceTiming.loadEventEnd - performanceTiming.startTime} ms`); });

 

 

Cheers from Switzerland!
Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 13, 2025

Lol, technically, I don't even use Adobe's default "Bounces" or "Bounce Rate"... we set up custom metrics based on "Single Page Visits", since there is too many potential actions on the page... Basing a bounce on a single hit was a problem for us...

 

But, I do agree that you likely want to combine any data onto a single call, even if just to reduce your server call usage... if you are tracking timing as separate calls then you will almost double your server call usage, as every page would have a secondary "timing" call... not ideal.

Amruthesh_AG
Community Advisor
Community Advisor
February 13, 2025

@katia_macedaxm 

 

Hi @Katia_MacedaXM I have used below script get the page-load speed and it is absolutely working fine for me.


s.doPlugins=function(s) {
if(s.pageName) s.getPageLoadTime();
if(s._pltPreviousPage){
s.prop9 = s._pltLoadTime;
s.events=s.apl(s.events,"event14="+ s._pltLoadTime,",",1);
}

}
s.usePlugins =true;

 

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 13, 2025

@amruthesh_ag this is the plugin that is no longer supported... that uses https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming which has been deprecated in most modern browsers... you will only be getting a subset of your traffic, and as more browsers update, that subset will get smaller and smaller.

Amruthesh_AG
Community Advisor
Community Advisor
February 18, 2025

@jennifer_dungan  Thanks for the update.

Amruthesh_AG
Community Advisor
Community Advisor
February 18, 2025

@katia_macedaxm  have tried this below extension Accessible Site Speed Metrics.

It is having some good insights.

https://exchange.adobe.com/apps/ec/103053

 

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 18, 2025

While I can't see the code for this extension, I suspect this relies on the same deprecated PerformanceTiming given the date it was published (September 23, 2019). I don't see any updates indicating that they have updated recently to use the newer PerformanceNavigationTiming standard (or leverage both for older and newer browsers based on what standard is supported).