I have installed the WordPress plugin “Google Analyticator” on all the WordPress-based websites.
However, for those that have the “EWEA Master Code” installed, I needed to edit the plugin code.
<script type="text/javascript">
var _gaq = _gaq || [];
// This website code here:
_gaq.push(['_setAccount', '<?php echo $uid; ?>']);
<?php if ($need_to_annon == '1' ): ?>
_gaq.push(['_gat._anonymizeIp']);
<?php endif; ?>
<?php
# Add any tracking code before the trackPageview
do_action('google_analyticator_extra_js_before');
if ( '' != $extra )
echo "$extra\n";
# Add the track pageview function
echo "_gaq.push(['_trackPageview']);\n\n";
# Disable page tracking if admin is logged in
if ( ( get_option(key_ga_admin) == ga_disabled ) && ( ga_current_user_is(get_option(key_ga_admin_role)) ) )
echo "_gaq.push(['_setCustomVar', 'admin']);\n";
# Add any tracking code after the trackPageview
do_action('google_analyticator_extra_js_after');
if ( '' != $extra_after )
echo "$extra_after\n";
# Add the final section of the tracking code
?>
(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);
})();
</script>
Now we add the EWEA Master Code in the plugin settings area:

For copying/pasting:
// EWEA's master code here:
_gaq.push(['_setAccount', 'UA-4609386-40']);
_gaq.push(["_setDomainName", "none"]);
_gaq.push(["_setAllowLinker", true]);
_gaq.push(["_trackPageview"]);