title: How to measure speed in Google Analytics for AMP pages?
body: <p>We implemented AMP to our site a couple of months ago. We're tracking visits correct in Google Analytics but the speed dimensions are empty, we have no sample pages measured.</p>
  
  <p>How can I get the load time in amp pages?</p>
  
  <p>In amp-analytics config I put 'site_speed_sample_rate' => 100 in order to track all the pages.</p>
  
  <pre><code>self::$triggers['trackPageview'] = [
              'on' =&gt; 'visible',
              'request' =&gt; 'pageview',
              'vars' =&gt; [
                  'account' =&gt; $this-&gt;environment-&gt;getCodigoAnalitics(),
                  'site_speed_sample_rate' =&gt; 100
              ]
          ];
  </code></pre>
  
  <p>I expect to get the load timings but all i've got is 0s in all amp pages.</p>
  
  <p><a href="https://i.stack.imgur.com/YcnMr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YcnMr.png" alt="enter image description here"></a></p>