There’s some confusion in this question between an account’s overall sample rate, and the specific sample rate set for tracking speed of individual pageviews, which are two totally different settings.
By default, the GA Universal tracking code only tracks the speed of 1% of pageviews, even if the overall account is set to 100% Sample Rate (which applies to all data, not page speed specifically.)
The OP (and I) would like the plugin to allow addition and customising of the siteSpeedSampleRate in the on-page tracking code, which is necessary to override the 1% default. This is accomplished by editing the default ga_create call to include the ‘siteSpeedSampleRate parameter. So the default Create call of
ga('create', 'UA-XXXXXXXX-1', 'auto');
is adjusted to:
ga('create', 'UA-XXXXXXXX-1', 'auto', {'siteSpeedSampleRate': 100});
or whatever percentage up to 100% the account owner specifies to stay withing the 10,000 max. pageviews per day which applies to this functionality.
It’s a critical adjustment needed to make the RUM (Real User Monitoring) of pagespeed in GA become useful for small and medium traffic sites, as a 1% sample size is simply worthless for these sites. This kind of RUM measurement of page speed is going to become absolutely critical as mobile speed is poised to become a significant ranking factor for Google Search and mobile page speed can only be effectively tracked this way. Because it takes into account all the variables of actual visitors’ mobile network speed, latency, geographic distance, phone OS, browser etc.
This capability is already available in for example Google Analytics Dashboard for WordPress plugin and it would be wonderful if it could be implemented here to further enhance the additional data-gathering that this plugin already includes.
Can this be implemented?
Paul
P.S Google’s documentation of this data collection customisation can be found at:
https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference