Skip to content

Instantly share code, notes, and snippets.

Created December 15, 2019 10:31
What would you like to do?
Add Google Analytics to WordPress Blog
//* Copy the above PHP opening tag if and only if your functions.php has a closing PHP tag
function add_google_analytics() { ?>
<!-- Paste Your Google Analytics Code Here -->
<?php } add_action('wp_head','add_google_analytics',10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment