Expand my Community achievements bar.

Page load time

Avatar

Level 4

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.

 

 

2 Replies

Avatar

Community Advisor

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?l...

 

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

 

Cheers,

Abhinav

Avatar

Community Advisor and Adobe Champion

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.