-
-
Save bhubbard/ffc1db1809edfc4bc57a to your computer and use it in GitHub Desktop.
Adding page load time tracking to Yoast's Google Analytics plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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