Last active
July 12, 2018 19:18
-
-
Save vineettalwar/5201b0e07d758e8a85e86fa6ac28fbc7 to your computer and use it in GitHub Desktop.
analytics code via child theme, Detailed instructions at http://technicaltip.com/wordpress/add-analytics-code-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
<?php | |
/* Add Google analytics code to wp_head */ | |
add_filter('wp_head','add_analytics_to_wphead',15); | |
function add_analytics_to_wphead(){ | |
?> | |
<script> | |
//analytics or tag manager code | |
</script> | |
<?php | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment