Skip to content

Commit

Permalink
Google Analytics: hook tracking code into wp_footer. (#6284)
Browse files Browse the repository at this point in the history
get_footer might not be compatible with every theme out there.
  • Loading branch information
jeherve authored and dereksmart committed Feb 3, 2017
1 parent 46e8a69 commit 9f1b3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/google-analytics/wp-google-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Jetpack_Google_Analytics {
* @return void
*/
private function __construct() {
add_action( 'get_footer', array( $this, 'insert_code' ) );
add_action( 'wp_footer', array( $this, 'insert_code' ) );
}

/**
Expand Down

0 comments on commit 9f1b3df

Please sign in to comment.