Google anayltics イベントを使用しようとしていますが、これまでのところ成功していません..
私がやっていることは、jQuery ロード関数を使用して 5 ページをロードすることであり、ロードごとに「次へ」ボタンを追跡したいと考えています。しかし、私は何か間違ったことをしているようです..
次のボタン イベント コードは次のとおりです。
$('.NextButton').click(function () {
_gaq.push(['_trackEvent', 'fz_main_page', 'clicked']);
installation.load_page({ inner_page: next_page, comid: data.comid, outerid: data.outerid, single_app: "1" });
});
分析コード:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25162785-2']);
_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);
})();
</script>
私は何を間違っていますか?