getpageloadtime - Common analytics Plugin | Community
Skip to main content
Level 4
April 30, 2021
Solved

getpageloadtime - Common analytics Plugin

  • April 30, 2021
  • 1 reply
  • 1357 views

Hi Team,

I have been trying to store the previous page value and time that previous page took to load in separate variable by using the common analytics plugin extension. I have used the below approach as well as other method to store the value. However, the value of load time and previous page name is not capturing as expected from my tried approaches. 

Can anyone let me know the steps that is followed to implement this variables if you have done it successfully. Other approaches are also welcome. Please let me know if any.

Set Variables:
********************************

if(s.pageName) s.getPageLoadTime();
if(s._pltPreviousPage)
{
s.linkTrackEvents = "XXX";
s.linkTrackVars = "XXXX";
s.events = "XX";
s.propxx = s._pltLoadTime;
s.propxx = s._pltPreviousPage;
s.eVarxx = s._pltPreviousPage;
s.events = "eventxx=" + s._pltLoadTime;
s.clearVars();
}
***********************************

 

 

 

 

 

Thank you,

Jay.

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 Jayakrish
Thanks for your reply. I haven't made any changes and the above said approach itself is working fine as expected. The one modification I did was, I have added the event in global page load rule to store the page load time and other variables in the same common analytics plugin rule itself.

1 reply

yuhuisg
Community Advisor
Community Advisor
May 1, 2021

Instead of running this in a Rule action, try running this inside the Adobe Analytics extension's custom code. That location also probably makes the most sense because this plugin should be called when firing every pageview beacon.

JayakrishAuthorAccepted solution
Level 4
May 6, 2021
Thanks for your reply. I haven't made any changes and the above said approach itself is working fine as expected. The one modification I did was, I have added the event in global page load rule to store the page load time and other variables in the same common analytics plugin rule itself.