Page load time | Community
Skip to main content
Level 4
Nov 29, 2023 9:18 PM UTC
Question

Page load time

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

Jennifer_Dungan
Level 2
Nov 29, 2023 11:15 PM UTC

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.

Translate
abhinavbalooni
New Participant
Nov 29, 2023 10:02 PM UTC

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

Translate