Settings

Note: Your UAID can be found on the top most dashboard of your Google Analytics account. It is written in small text next to each one of your domain names, and looks something like this: UA-74368483-3

var _gaq = _gaq || []; _gaq.push([\'_setAccount\', \'' . get_option( 'analytics_uaid' ) . '\']); _gaq.push([\'_trackPageview\']); (function() { var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true; ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\'; var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s); })(); '; } } add_action('wp_head', 'showAnalyticsCode'); // Run the function to show the analytics code ?>