Revision: 47345
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 6, 2011 01:14 by alp
Initial Code
/** * Add Google Analytics to Footer * http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/ * **/ function myfunction_add_google_analytics() { echo '<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>'; echo '<script type="text/javascript">'; echo 'var pageTracker = _gat._getTracker("UA-XXXXX-X");'; echo 'pageTracker._trackPageview();'; echo '</script>'; } add_action('wp_footer', 'myfunction_add_google_analytics');
Initial URL
http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/
Initial Description
Initial Title
Wordpress: Add Google Analytics to Footer
Initial Tags
wordpress
Initial Language
PHP