• Resolved mike365

    (@mike365)


    How do I add Google Analytic PageSpeed code the plugin?

    <script type="text/javascript">
     var _gaq = _gaq || [];
     _gaq.push(['_setAccount', 'UA-XXXXX-X']);
     _gaq.push(['_trackPageview']);
    <strong> _gaq.push(['_trackPageLoadTime']);</strong>
    
     (function() {
       var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
       ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
       var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
     })();
    </script>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mike365

    (@mike365)

    I was trying to bold the additional line of code. Here is the additional code that has to be added.

    _gaq.push(['_trackPageLoadTime']);

    Plugin Author Dartur

    (@dartur)

    Hi Mike,

    Open the php file and search for this line:

    _gaq.push([‘_trackPageview’]);

    Then add your line below it like this:

    _gaq.push([‘_trackPageview’]);
    _gaq.push([‘_trackPageLoadTime’]);

    Then pagespeed will be tracked for you (but not for the users accounts).

    Thread Starter mike365

    (@mike365)

    Bingo, @dartur thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Google Analytics Multisite Async] Google PageSpeed’ is closed to new replies.