Page load time | Community
Skip to main content
November 29, 2023
Question

Page load time

  • November 29, 2023
  • 2 replies
  • 845 views

ZHi everyone,

In configure code AA analytics, Inside do plug-in, I have written code  but then , I am not getting the event 100.

 

Here is the code as follows 

 

 

if(s.pageName) getPageLoadTime();

if(s._pltPreviousPage)

{

  s.prop10 = s._pltLoadTime;

  s.eVar10 = s._pltPreviousPage

  s.events = s.events + "event100=" + window._pltL

oadTime;

}

I am not getting the  event100 and eVar10 in any pages in SPA website.

 

 

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

2 replies

abhinavbalooni
Community Advisor
Community Advisor
November 29, 2023

Hey @aepaa 

 

As per the latest version update of the plugin, the values have moved to window object instead of the s object.

 

https://experienceleague.adobe.com/docs/analytics/implementation/vars/plugins/getpageloadtime.html?lang=en

 

Try using window object as per the above documentation and see how you go.

 

Cheers,

Abhinav

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 29, 2023

Also, you should watch the console of your browser to make sure there are no JS errors.

 

You could try adding some temp console.log entries at various points to see if this code is being triggered and the state of some of the values at the time of the trigger.