Created
March 15, 2018 13:02
-
-
Save gareth-gillman/eb6cf1c0a413f4319a06519557052d3f to your computer and use it in GitHub Desktop.
Google Analytics WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gg_add_ga() { | |
echo '<script>'; | |
echo '// ga code here'; | |
echo '</script>'; | |
} | |
add_action( 'wp_head', 'gg_add_ga' ); | |
add_action( 'wp_footer', 'gg_add_ga' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment