List variable for performanceTiming plug-in

Avatar

Avatar

psvlin

Avatar

psvlin

psvlin

31-07-2017

I'm trying to understand how to implement the performanceTiming plug-in and it says a list variable is needed:

"If you wish to utilize the asset load time functionality within the plug-in, you must pass in the name of the list variable to be used."

What is the use case for using a list variable with the performanceTiming? If I don't use a list variable, then what information will I get?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

BarryLennon

Avatar

BarryLennon

BarryLennon

21-08-2017

If you use a List Variable, you'll get the timing measurements for the individual assets that make up the page (e.g., individual JavaScript libraries) - this will be a lot of data.

If you just configure the ten (10) events in s.pte, you'll get nine (9) calculated timings for the performance of the page as a whole, from the point that the user clicks a link to load the page up to the point that the page finishes loading; the tenth event is a counter to help with creating calculated metrics.

Answers (5)

Answers (5)

Avatar

Avatar

BarryLennon

Avatar

BarryLennon

BarryLennon

31-08-2017

Actually, if you're only interested in the page load times (and not the asset timings), the call should just be:

s.performanceTiming()

You should be able to read the contents of the cookie (where the timings are stored for reading on the next page) by inspecting it in the Console before navigating:

s.Util.cookieRead('s_ptc');

Should look something like this:

"0.00^^0.00^^0.00^^0.00^^0.09^^0.00^^6.25^^0.01^^6.36"

If that cookie's not being set, you've possibly got a timing problem (we had this on our site and had to modify the plug-in and the code we added to s_doPlugins).

Avatar

Avatar

psvlin

Avatar

psvlin

psvlin

28-08-2017

Based on the example:

/* Performance Timing */

s.eVar9 = s.getPreviousValue(s.pageName,'gpv_v9',''); //Record the previous page name in the designated eVar of your choice

s.performanceTiming('list2')

If we don't use a list, should the call be:

s.performanceTiming('eVar9')

instead of

s.performanceTiming('list2')

?

Avatar

Avatar

psvlin

Avatar

psvlin

psvlin

24-08-2017

Thanks for confirming. I'm asking because I don't see the events showing up on the next page load.

Avatar

Avatar

BarryLennon

Avatar

BarryLennon

BarryLennon

24-08-2017

That's right:  the measurements are collected on the next page load, which is why the article instructs the setting of a "Performance Timing Page Name" variable as well (the measurements will be analysed against this variable, and ​not​ the Page Name).

Do you customise s.linkTrackVars for Exit and / or Download links?

Note that the measurements are also captured on Exit Link clicks, so the "Performance Timing Page Name" variable needs to be included in s.linkTrackVars if you're customising it for link-tracking calls.

Avatar

Avatar

psvlin

Avatar

psvlin

psvlin

23-08-2017

Will the 10 events be in the events list on a the next page load?