<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-5198393-27']);
_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);
})();
<?php if(is_single()): ?>
pageTracker._setCustomVar(1, "author", "<?php the_author(); ?>", <?php the_author_id(); ?>);
<?php endif; ?>
</script>
記事のページの時だけカスタム変数に記者の名前と記者のIDを入れています。この使い方は間違ってるでしょうか?これを設定したところ統計が一切取れなくなりました。このコードではトップページは今までと変わらないはずなのに。何がおかしいか分かりますでしょうか?カスタム変数を使おうとして少しでも失敗するとデータが一切取れなくなるのでしょうか?
ご回答頂きましたページの中にはカスタム変数について書かれていないようです。記者毎の統計はこちらのプラグインで取れるのでしょうか。