Skip to content

Instantly share code, notes, and snippets.

@carsonmcdonald
Created May 5, 2011 01:19
Show Gist options
  • Save carsonmcdonald/956349 to your computer and use it in GitHub Desktop.
Save carsonmcdonald/956349 to your computer and use it in GitHub Desktop.
Adding page load time tracking to Yoast's Google Analytics plugin
function gapagespeed($push)
{
$push[] = "'_trackPageLoadTime'";
return $push;
}
add_filter( 'yoast-ga-push-after-pageview', 'gapagespeed' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment