page load time - s._pltPreviousPage | Community
Skip to main content
January 8, 2024
Solved

page load time - s._pltPreviousPage

  • January 8, 2024
  • 2 replies
  • 1417 views

Hi everyone,

s._pltPreviousPage is not being set on my sub section of pages .

When I try to navigate from mens section to kids section, It is not firing.

But basically it needs to fire and since they both are in same domain.

Can anyone please tell , what could be the issue?

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 yuhuisg

Actually , these are partially SPA website. As, far as I know nope there is no i-frame


The getPageLoadTime plugin may not work well with SPAs. This is because the plugin saves its data to global / window JavaScript variables, with the assumption that when you navigate to a new page, the browser has to load that page entirely in the normal page load way, and so the JavaScript variables that the plugin expects can work properly.

But with SPAs, since the browser never loads the page in the entire window, so the plugin never updates its JavaScript variables, so it won't be able to measure as expected.

2 replies

yuhuisg
Community Advisor
Community Advisor
January 8, 2024

Please describe your implementation further. How have you implemented the plugin?

Also, is the problem happening only when navigating from mens section to kids section?

SA30Author
January 8, 2024

We have implemented the code in AA custom code editor, under do plugin.

Not only mens to kids but all site section navigations.. 

As same as given in documentation below, but instead of " windows." i used "s." i have old  plugin code so its 

if(s.pageName) getPageLoadTime(); if(window._pltPreviousPage) { s.prop10 = window._pltLoadTime; s.eVar10 = window._pltPreviousPage s.events = "event100=" + window._pltLoadTime; }

 

// then plugin code 

SA30Author
January 11, 2024

That looks correct. Does your website use any IFRAMEs?

Also, take note that this getPageLoadTime plugin has been deprecated by Adobe. https://experienceleague.adobe.com/docs/analytics/implementation/vars/plugins/getpageloadtime.html?lang=en


Actually , these are partially SPA website. As, far as I know nope there is no i-frame

NimashaJain
Adobe Employee
Adobe Employee
February 6, 2024

@sa30 Did you find the suggested solutions helpful? It would be great if you can  mark the answer as correct for posterity. If you have found out solution yourself, share it with wider audience in the community.