kronoszx
3/18/2017 - 1:03 PM

Detect Google Analytics User Agent

Detect Google Analytics User Agent


<?php if (!isset($_SERVER['HTTP_USER_AGENT']) || stripos($_SERVER['HTTP_USER_AGENT'], 'Speed Insights') === false): ?>
// your analytics code here
<?php endif; ?>