Skip to content

Commit

Permalink
Google Analytics: add HTML comment before the script output. (#6288)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve authored and dereksmart committed Feb 3, 2017
1 parent 9f1b3df commit 158cd71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/google-analytics/wp-google-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ public function insert_code( $output = true ) {
$custom_vars[] = "_gaq.push(['_trackPageview']);";
}

$async_code = "<script type='text/javascript'>
$async_code = "<!-- Jetpack Google Analytics -->
<script type='text/javascript'>
var _gaq = _gaq || [];
%custom_vars%
Expand Down

0 comments on commit 158cd71

Please sign in to comment.